summaryrefslogtreecommitdiff
path: root/pv/urls.py
blob: c449e89d96774e96f7b1c4eb96e0df19ec675205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from django.conf import settings
from django.conf.urls import url, include
from django.contrib import admin
from django.views.static import serve

from program.views import json_day_schedule, json_timeslots_specials

admin.autodiscover()

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^program/', include('program.urls')),
    url(r'^nop', include('nop.urls')),
    url(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),
    url(r'^export/timeslots_specials.json$', json_timeslots_specials)
]

if settings.DEBUG:
    urlpatterns.append(url(r'^site_media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT}))