-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathurls.py
28 lines (22 loc) · 904 Bytes
/
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 *
from django.conf import settings
from sparklez import views
#static
from django.views.static import serve
#admin
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^$', views.base),
#admin
(r'^admin/password_reset/$', 'django.contrib.auth.views.password_reset'),
(r'^admin/password_reset/done/$', 'django.contrib.auth.views.password_reset_done'),
(r'^admin/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm'),
(r'^admin/reset/done/$', 'django.contrib.auth.views.password_reset_complete'),
(r'^accounts/login/(.*)', admin.site.urls),
(r'^admin/',include(admin.site.urls)),
)
if settings.SERVE_MEDIA:
urlpatterns += patterns('',
(r'^.*?media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)