From 78894b85cf45f8e7c9e6a71a7c89110be4fb6feb Mon Sep 17 00:00:00 2001 From: Henrique Pereira Date: Wed, 28 May 2014 14:36:43 -0300 Subject: [PATCH] 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. --- .../{{cookiecutter.repo_name}}/config/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py index c5ac1590..bd798cb8 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/settings.py @@ -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