summaryrefslogtreecommitdiffstats
path: root/apps/settings.py
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-08-22 10:41:25 +0800
committerJeremy Kerr <jk@ozlabs.org>2008-08-22 10:41:25 +0800
commitf1e089f7736ac8f7b9af784461350c4c169211ad (patch)
treee45453e0d1fe5695b5227249040a668bff2610c1 /apps/settings.py
parent6a2a96299d4802cb4fb82891daf6f81ff33ba4e0 (diff)
downloadpatchwork-f1e089f7736ac8f7b9af784461350c4c169211ad.tar.bz2
patchwork-f1e089f7736ac8f7b9af784461350c4c169211ad.tar.xz
Use django-registration infrastructure
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/settings.py')
-rw-r--r--apps/settings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/settings.py b/apps/settings.py
index df656de..8b33182 100644
--- a/apps/settings.py
+++ b/apps/settings.py
@@ -66,7 +66,8 @@ MIDDLEWARE_CLASSES = (
ROOT_URLCONF = 'apps.urls'
-LOGIN_URL = '/patchwork/login'
+LOGIN_URL = '/accounts/login'
+LOGIN_REDIRECT_URL = '/user/'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
@@ -89,7 +90,10 @@ INSTALLED_APPS = (
'django.contrib.sites',
'django.contrib.admin',
'patchwork',
+ 'registration',
)
DEFAULT_PATCHES_PER_PAGE = 100
PATCHWORK_FROM_EMAIL = 'Patchwork <patchwork@patchwork.example.com>'
+
+ACCOUNT_ACTIVATION_DAYS = 7