-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
30 lines (22 loc) · 1.33 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.views import password_reset, password_reset_done
from django.contrib.auth.views import password_change, password_change_done
from django.views.generic.simple import direct_to_template
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# url(r'^$', 'bustrack.views.home', name='home'),
# url(r'^bustrack/', include('bustrack.foo.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include('registration.urls')),
#url(r'^accounts/', include('registration.simple.urls')),
)
urlpatterns += patterns('',
(r'^accounts/profile/$', direct_to_template, {'template': 'registration/profile.html'}),
(r'^accounts/password_reset/$', password_reset, {'template_name': 'registration/password_reset.html'}),
(r'^accounts/password_reset_done/$', password_reset_done, {'template_name': 'registration/password_reset_done.html'}),
(r'^accounts/password_change/$', password_change, {'template_name': 'registration/password_change.html'}),
(r'^accounts/password_change_done/$', password_change_done, {'template_name': 'registration/password_change_done.html'}),
)