diff options
author | Johannes Raggam <raggam-nl@adm.at> | 2011-05-26 11:58:16 (GMT) |
---|---|---|
committer | Johannes Raggam <raggam-nl@adm.at> | 2011-05-26 11:58:16 (GMT) |
commit | 1ae6d14038307ff2cdd33e65154bce76690930d2 (patch) | |
tree | d8fc26f4afe166c67e75d59013a20e0774385e37 /nop/urls.py | |
parent | b8c4d41508a0dd1c0019e8cb6e699d276c9d9882 (diff) |
add static js and css
Diffstat (limited to 'nop/urls.py')
-rw-r--r-- | nop/urls.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nop/urls.py b/nop/urls.py index 1f1e5ea..caa6898 100644 --- a/nop/urls.py +++ b/nop/urls.py @@ -1,8 +1,13 @@ from django.conf.urls.defaults import * from views import get, get_current, nop_form +import os +NOP_STATIC_DIR = 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}), ) |