forked from bitsoffreedom/pim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
30 lines (22 loc) · 1.04 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
29
30
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
if settings.DEBUG:
from staticfiles.urls import staticfiles_urlpatterns
urlpatterns = staticfiles_urlpatterns()
else:
urlpatterns = patterns('')
urlpatterns += patterns('',
(r'^start/', include('pimbase.urls')),
# Sentry for catching exceptions in staging/production
(r'^sentry/', include('sentry.urls')),
# Django Admin
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),
# Password management. Consider using django-registration for this stuff, it's great!
(r'^password_reset/$', 'django.contrib.auth.views.password_reset'),
(r'^password_reset_done/$', 'django.contrib.auth.views.password_reset_done'),
(r'^password_reset_confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$$', 'django.contrib.auth.views.password_reset_confirm'),
(r'^password_reset_done/$', 'django.contrib.auth.views.password_reset_complete'),
)