If you do not want to associate LOGIN_URL with the "view" (you can change it to another), then you can link to the specified URL in settings.py :
from django.core.urlresolvers import reverse_lazy LOGIN_URL = reverse_lazy('login')
where the "login" is something like:
url(r'^accounts/login/$', 'my_app.view.Login', name='login'),
then, if you change the view to another, you do not need to make changes to settings.py
source share