You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caveat: Only decorate the views that really need authentication, rather than blindly decorate ALL requests. There used to be a troubleshooting case where the reporter managed to incorrectly decorate both /index and /images/logo.jpg. The latter was also used in their login template`. That setup ended up having their login page triggered another login session which caused the original login session to always fail. It was difficult to debug.
Docs state to use
@settings.AUTH.login_required
how would this be used in generic views?@settings.AUTH.login_required
class `IndexView(generic.ListView):
...
I would also like to add the route to all views, is there a generic way to do this other than adding the decorator everywhere?
The text was updated successfully, but these errors were encountered: