Closed bphariharan1301 closed 1 year ago
Try LOGIN_URL='login'
, basically same as u'hve given name='login'
in urlpatterns path
Thanks you so much man! It worked!
Out of curiosity why it didn't work when I gave
LOGIN_URL = 'accounts.views.login'
Considering both means the same
Thank you!
u are providing name=
in pattern for that view
had the same problem, thanks for the answer !
I keep on getting this issue:-
Which indeed exists under accounts/urls.py and the function is at accounts/views.py
accounts/urls.py
urlpatterns = [ path('login/', views.login, name='login'), ]
And when I looked into the app_configurations.py file I found that the LOGIN_URL parameter was taking a default value which was not present in the application. So, I tried adding that under my_project/settings.py
LOGIN_URL = 'accounts.views.login'
But, I do not know why it again throws the same error. Can you please tell me where I'm going wrong
Thank you