forked from gdetrez/MyConf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
56 lines (46 loc) · 2.13 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from django.conf.urls.defaults import *
from django.conf import settings
from django.views.generic.simple import direct_to_template
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^myconf/', include('myconf.foo.urls')),
(r'^$', direct_to_template, {'template': 'home.djhtml'}),
(r'^staff/$', 'myconf.people.views.staff'),
(r'^people/(?P<slug>[\w\d-]+)/$', 'myconf.people.views.user'),
# (r'^notifications/$', 'notifications.views.index'),
(r'^schedule/$', 'myconf.schedule.views.schedule'),
(r'^schedule/session/(?P<pk>\d+)/$', 'myconf.schedule.views.session'),
(r'^schedule/session/(?P<session_pk>\d+)/signup/$',
'myconf.apps.signup.views.signup'),
(r'^schedule/track/(?P<slug>[\w\d-]+)/$', 'myconf.schedule.views.track'),
(r'^restaurants/$', 'myconf.restaurants.views.list'),
(r'^map/$',
direct_to_template, {'template': 'map.djhtml'}),
(r'^information/$',
direct_to_template, {'template': 'information/index.djhtml'}),
(r'^information/getting-there/$',
direct_to_template, {'template': 'information/gettingthere.djhtml'}),
(r'^information/sleeping/$',
direct_to_template, {'template': 'information/sleeping.djhtml'}),
(r'^information/going-out/$',
direct_to_template, {'template': 'information/goingout.djhtml'}),
(r'^information/currency/$',
direct_to_template, {'template': 'soon.djhtml'}),
# Uncomment the admin/doc line below to enable admin documentation:
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)
if settings.DEBUG:
urlpatterns += patterns('django.contrib.staticfiles.views',
url(r'^static/(?P<path>.*)$', 'serve', {
'show_indexes' : True,
}))
urlpatterns += patterns('',
url(r'^_uploads/(?P<path>.*)$', 'django.views.static.serve', {
'show_indexes' : True,
'document_root': settings.MEDIA_ROOT,
}))