summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2015-12-28 16:33:52 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2015-12-28 16:33:52 (GMT)
commit97f0d0bcd2ad70630d5eae09ff63e8850538d39e (patch)
treeb6d3a54aa36e4611d02bd94f4180f1496c6a755e
parentcdbbdd0234f2548dd8cfe9de40ac94fd2f0594d9 (diff)
reformated code.
-rw-r--r--pv/urls.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/pv/urls.py b/pv/urls.py
index 8d97fb3..b4f72ce 100644
--- a/pv/urls.py
+++ b/pv/urls.py
@@ -6,17 +6,15 @@ 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))
+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}))
+ urlpatterns += patterns('',
+ (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT})
+)