1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Website urls
url(r'^', include('website.urls', namespace='website')),
# Accounts urls
url(r'accounts/login/$', 'scipy.views.user_login'),
url(r'accounts/logout/$', 'scipy.views.user_logout'),
url(r'accounts/register/$', 'scipy.views.user_register'),
url(r'accounts/profile/$', 'scipy.views.user_profile'),
url(r'accounts/upload-document/$', 'scipy.views.upload_document', name='upload-document'),
# Reusing the admin password reset
url(r'accounts/password-change/$', 'django.contrib.auth.views.password_change', name='password_change'),
url(r'accounts/password-change/done/$', 'django.contrib.auth.views.password_change_done', name='password_change_done'),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
|