changeset 129:be8fec1e85d9

Add LOGIN_URL to settings So that the @login_required decorator uses the custom login/registration view and not the default one
author dellsystem <ilostwaldo@gmail.com>
date Sat, 22 Sep 2012 11:12:30 -0400
parents 20f743ed0f57
children 5ab229c9d348
files settings.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/settings.py
+++ b/settings.py
@@ -150,5 +150,7 @@
 
 COMMENTS_APP = 'threadedcomments'
 
+# Doesn't accept view names until Django 1.5
 LOGIN_REDIRECT_URL='/'
+LOGIN_URL = '/login'
 AUTH_PROFILE_MODULE = 'profile.Profile'