summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-04-02 12:32:19 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-04-02 12:32:19 (GMT)
commit158b1d5c12fd2332960671bce6d71953871da3cf (patch)
treee76d7e404c4316af1fd66a6ad49073cdf8a7b16e
parentd1bb616aae8a11afef2627cf8a8d166156a05cf7 (diff)
added static_media.
-rw-r--r--urls.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/urls.py b/urls.py
index db535ce..5aaf499 100644
--- a/urls.py
+++ b/urls.py
@@ -1,9 +1,19 @@
+from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin
+import os
+
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^program/', include('helsinki.program.urls')),
)
+if settings.DEBUG:
+ urlpatterns += patterns('',
+ (r'^site_media/(?P<path>.*)$',
+ 'django.views.static.serve',
+ {'document_root': os.path.join(os.path.dirname(__file__), 'site_media')}
+ ),
+ )