diff options
Diffstat (limited to 'urls.py')
-rw-r--r-- | urls.py | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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: |