summaryrefslogtreecommitdiff
path: root/nop
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2015-12-28 16:29:56 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2015-12-28 16:29:56 (GMT)
commit1ca6b2fc829b1605da634d74fd8c2a322ecc747f (patch)
tree1fcf9360fc41fd6cc2b11f7078f835a46b18532f /nop
parentf9db1f1be7fdb42fc842d3cdba6fdac92fd5b896 (diff)
removed unused import, reformated code.
Diffstat (limited to 'nop')
-rw-r--r--nop/urls.py17
1 files changed, 7 insertions, 10 deletions
diff --git a/nop/urls.py b/nop/urls.py
index 85857ce..3cc97a4 100644
--- a/nop/urls.py
+++ b/nop/urls.py
@@ -1,16 +1,13 @@
-from django.conf.urls import patterns, url, include
+from django.conf.urls import patterns, url
from views import get, get_current, nop_form
import os
-NOP_STATIC_DIR = os.path.join(os.path.dirname(__file__), 'site_media')
+NOP_SITE_MEDIA = os.path.join(os.path.dirname(__file__), 'site_media')
-urlpatterns = patterns(
- '',
- url(r'^/get_current/?$', get_current),
- url(r'^/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<hour>\d{1,2})/(?P<minute>\d{1,2})/?$',
- get),
- url(r'^/?$', nop_form),
- url(r'^/static/(?P<path>.*)$', 'django.views.static.serve',
- {'document_root': NOP_STATIC_DIR}),
+urlpatterns = patterns('',
+ url(r'^/get_current/?$', get_current),
+ url(r'^/(?P<year>\d{4})/(?P<month>\d{1,2})/(?P<day>\d{1,2})/(?P<hour>\d{1,2})/(?P<minute>\d{1,2})/?$', get),
+ url(r'^/?$', nop_form),
+ url(r'^/static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': NOP_SITE_MEDIA}),
)