forked from yuvipanda/wtfimb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
urls.py
31 lines (27 loc) · 1.69 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
31
from django.conf.urls.defaults import *
from django.conf import settings
from django.views.generic.simple import redirect_to
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
(r'^static_mobile/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MOBILE_MEDIA_ROOT}),
url(r'^account/signup/$', 'registration.views.register', {'backend':'registration.backends.default.DefaultBackend' },
name='registration_register'),
(r'^account/', include('django_authopenid.urls')),
(r'^account/settings','home.views.settings'),
(r'^account/password_change/$', 'django.contrib.auth.views.password_change'),
(r'^account/password_change/done/$', 'django.contrib.auth.views.password_change_done'),
(r'^chennai/$', include('home.urls')),
(r'^chennai/', include('stages.urls')),
(r'^chennai/', include('routes.urls')),
(r'^chennai/api/', include('api.urls')),
(r'^chennai/path/', include('routing.urls')),
(r'^chennai/janitor/', include('janitor.urls')),
(r'^$', lambda req: redirect_to(req,'/chennai/')),
(r'^robots.txt$', lambda req: redirect_to(req,'/static/robots.txt')),
(r'^admin/', include(admin.site.urls)),
)