summaryrefslogtreecommitdiff
path: root/helsinki/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'helsinki/urls.py')
-rw-r--r--helsinki/urls.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/helsinki/urls.py b/helsinki/urls.py
new file mode 100644
index 0000000..e55dddc
--- /dev/null
+++ b/helsinki/urls.py
@@ -0,0 +1,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})
+ )