mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 03:24:01 +03: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
|
@ -231,6 +231,7 @@ class Common(Configuration):
|
||||||
# Select the correct user model
|
# Select the correct user model
|
||||||
AUTH_USER_MODEL = "users.User"
|
AUTH_USER_MODEL = "users.User"
|
||||||
LOGIN_REDIRECT_URL = "users:redirect"
|
LOGIN_REDIRECT_URL = "users:redirect"
|
||||||
|
LOGIN_URL = "account_login"
|
||||||
########## END Custom user app defaults
|
########## END Custom user app defaults
|
||||||
|
|
||||||
########## SLUGLIFIER
|
########## SLUGLIFIER
|
||||||
|
|
Loading…
Reference in New Issue
Block a user