summaryrefslogtreecommitdiff
path: root/pv/urls.py
blob: e55dddca1fbe97bdf3aa527b8809ce0cb148abff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin

admin.autodiscover()

from program.views import json_day_schedule
urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
    (r'^program/', include('program.urls')),
    (r'^nop', include('nop.urls')),
    (r'^tinymce/', include('tinymce.urls')),
    url(r'^export/day_schedule/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/$', json_day_schedule),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT})
    )