forked from django-de/2010.djangocon.eu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
urls.py
31 lines (25 loc) · 1.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
from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
handler500 = 'utils.views.server_500'
handler404 = 'utils.views.server_404'
urlpatterns = patterns('',
(r'^', include('core.urls', namespace='core', app_name='core')),
(r'^blog/', include('blog.urls', namespace='blog', app_name='blog')),
(r'^hotels/', include('accommodation.urls', namespace='accommodation', app_name='accommodation')),
(r'^talks/', include('talks.urls', namespace='talks', app_name='talks')),
(r'^waitlist/', include('waitlist.urls', namespace='waitlist', app_name='waitlist')),
(r'^sprints/', include('sprints.urls', namespace='sprints', app_name='sprints')),
(r'^barn/', include(admin.site.urls)),
(r'^schedule/', include('schedule.urls', namespace='schedule', app_name='schedule')),
)
urlpatterns += patterns('utils.views',
url(r'^flush_cache/$', 'flush_cache', name='flush_cache'),
)
if settings.DEBUG:
urlpatterns += patterns('',
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT,
}),
)