From 97f0d0bcd2ad70630d5eae09ff63e8850538d39e Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Mon, 28 Dec 2015 17:33:52 +0100 Subject: reformated code. 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\d{4})/(?P\d{1,2})/(?P\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\d{4})/(?P\d{1,2})/(?P\d{1,2})/$', json_day_schedule) +) if settings.DEBUG: - urlpatterns += patterns( - '', - (r'^site_media/(?P.*)$', 'django.views.static.serve', - {'document_root': settings.MEDIA_ROOT})) + urlpatterns += patterns('', + (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}) +) -- cgit v0.10.2