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:
Henrique Pereira 2014-05-28 14:36:43 -03:00
parent fdff60d930
commit 78894b85cf

View File

@ -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