summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/urls.py b/urls.py
index 1f8bc7a6..886cd375 100644
--- a/urls.py
+++ b/urls.py
@@ -125,11 +125,8 @@ urlpatterns = patterns('',
# Some django internals we use
(r'^jsi18n/$', 'django.views.i18n.null_javascript_catalog'),
+# Static content
+ (r'^media/(.*)$', 'django.views.static.serve', {'document_root': settings.DEPLOY_PATH+'/media'})
)
-
-if settings.DEBUG == True:
- urlpatterns += patterns('',
- (r'^media/(.*)$', 'django.views.static.serve',
- {'document_root': settings.DEPLOY_PATH+'/media'}))
-
+
# vim: set ts=4 sw=4 et: