diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-08-22 10:41:25 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-08-22 10:41:25 +0800 |
commit | f1e089f7736ac8f7b9af784461350c4c169211ad (patch) | |
tree | e45453e0d1fe5695b5227249040a668bff2610c1 /apps/urls.py | |
parent | 6a2a96299d4802cb4fb82891daf6f81ff33ba4e0 (diff) | |
download | patchwork-f1e089f7736ac8f7b9af784461350c4c169211ad.tar patchwork-f1e089f7736ac8f7b9af784461350c4c169211ad.tar.gz |
Use django-registration infrastructure
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/urls.py')
-rw-r--r-- | apps/urls.py | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/apps/urls.py b/apps/urls.py index ac22547..1a6f94b 100644 --- a/apps/urls.py +++ b/apps/urls.py @@ -20,17 +20,30 @@ from django.conf.urls.defaults import * from patchwork.admin import admin_site +from registration.views import register +from patchwork.forms import RegistrationForm +from patchwork.utils import userprofile_register_callback + urlpatterns = patterns('', # Example: (r'^', include('patchwork.urls')), + # override the default registration form + url(r'^accounts/register/$', + register, + {'form_class': RegistrationForm, + 'profile_callback': userprofile_register_callback}, + name='registration_register'), + + (r'^accounts/', include('registration.urls')), + # Uncomment this for admin: (r'^admin/(.*)', admin_site.root), (r'^css/(?P<path>.*)$', 'django.views.static.serve', - {'document_root': '/home/jk/devel/patchwork/pwsite/htdocs/css'}), + {'document_root': '/srv/patchwork/htdocs/css'}), (r'^js/(?P<path>.*)$', 'django.views.static.serve', - {'document_root': '/home/jk/devel/patchwork/pwsite/htdocs/js'}), + {'document_root': '/srv/patchwork/htdocs/js'}), (r'^images/(?P<path>.*)$', 'django.views.static.serve', - {'document_root': '/home/jk/devel/patchwork/pwsite/htdocs/images'}), + {'document_root': '/srv/patchwork/htdocs/images'}), ) |