How to apply authentication everywhere (include views and apis)? i tried to do it in
UserMiddleware with return
HttpResponseRedirect(reverse("misago:login")) but i got "TOO MANY REDIRECTS" error and i think this is not a good place.
For example if user go to index page, we redirect him to login, and for the others we raise
How should i implement it?