summaryrefslogtreecommitdiff
path: root/pv
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-04-19 18:25:37 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2016-04-19 18:25:37 (GMT)
commit3c78c9f3f4af3c52725947f277e37938fd6d4f08 (patch)
tree304010bbb643602965cfeba5684ab9b41de04b1b /pv
parent1d3301368c60efcb62dd4161e9e464c924b8f4d3 (diff)
fixed pep8/flake8 warnings. again.
Diffstat (limited to 'pv')
-rw-r--r--pv/urls.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/pv/urls.py b/pv/urls.py
index ec1cdff..3c0ab4d 100644
--- a/pv/urls.py
+++ b/pv/urls.py
@@ -2,19 +2,20 @@ from django.conf import settings
from django.conf.urls import patterns, url, include
from django.contrib import admin
-admin.autodiscover()
-
from program.views import json_day_schedule
+admin.autodiscover()
+
urlpatterns = patterns('',
url(r'^admin/', include(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)
-)
+ )
if settings.DEBUG:
urlpatterns += patterns('',
- (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT})
-)
+ (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
+ {'document_root': settings.MEDIA_ROOT})
+ )