summaryrefslogtreecommitdiffstats
path: root/apps/settings.py
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2010-10-31 19:29:29 -0400
committerJeremy Kerr <jk@ozlabs.org>2011-04-14 17:21:04 +0800
commitc2c6a408c7764fa29389ce160f52776c9308d50a (patch)
tree1c47388b5494210aeed87f56f0c8b6e9fbeb4633 /apps/settings.py
parent56e2243f3be7e859666ce0e4e1a8b8b94444f8d4 (diff)
downloadpatchwork-c2c6a408c7764fa29389ce160f52776c9308d50a.tar.bz2
patchwork-c2c6a408c7764fa29389ce160f52776c9308d50a.tar.xz
registration: use EmailConfimation rather than separate registration app
Since we have infrastructure for email confirmations, we no longer need the separate registration app. Requires a migration script, which will delete all inactive users, including those newly added and pending confirmation. Use carefully. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/settings.py')
-rw-r--r--apps/settings.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/settings.py b/apps/settings.py
index f56da70..8f091d0 100644
--- a/apps/settings.py
+++ b/apps/settings.py
@@ -64,7 +64,7 @@ MIDDLEWARE_CLASSES = (
ROOT_URLCONF = 'apps.urls'
-LOGIN_URL = '/accounts/login'
+LOGIN_URL = '/user/login/'
LOGIN_REDIRECT_URL = '/user/'
# If you change the ROOT_DIR setting in your local_settings.py, you'll need to
@@ -96,13 +96,12 @@ INSTALLED_APPS = (
'django.contrib.sites',
'django.contrib.admin',
'patchwork',
- 'registration',
)
DEFAULT_PATCHES_PER_PAGE = 100
DEFAULT_FROM_EMAIL = 'Patchwork <patchwork@patchwork.example.com>'
-ACCOUNT_ACTIVATION_DAYS = 7
+CONFIRMATION_VALIDITY_DAYS = 7
# Set to True to enable the Patchwork XML-RPC interface
ENABLE_XMLRPC = False