mirror of
https://github.com/Hopiu/cookiecutter-django.git
synced 2026-05-20 18:11:52 +00:00
Added a default LOGIN_URL
Added "account_login" as the default LOGIN_URL in settings.py. This fixes a problem where the application will throw a 404 on the login page if you changed allauth from "/accounts" to anything else.
This commit is contained in:
parent
fdff60d930
commit
78894b85cf
1 changed files with 1 additions and 0 deletions
|
|
@ -231,6 +231,7 @@ class Common(Configuration):
|
|||
# Select the correct user model
|
||||
AUTH_USER_MODEL = "users.User"
|
||||
LOGIN_REDIRECT_URL = "users:redirect"
|
||||
LOGIN_URL = "account_login"
|
||||
########## END Custom user app defaults
|
||||
|
||||
########## SLUGLIFIER
|
||||
|
|
|
|||
Loading…
Reference in a new issue