Using the django.contrib.auth.views.login method to perform the sign in method in my project, how to prevent the access to the /registration/login/ page again after successful login?
Using the django.contrib.auth.views.login method to perform the sign in method in my project, how
Share
You could deocrate your login-view with this AnonymousRequired-Decorator.
See this blog post for some background information on decorators which even explains things using your specific problem : http://passingcuriosity.com/2009/writing-view-decorators-for-django/