Commit 464014ee67433397bb6f6538d875d1547b6da21f
1 parent
aa301dad
Exists in
master
and in
5 other branches
Check debug in url #230
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
amadeus/urls.py
@@ -30,4 +30,5 @@ urlpatterns = [ | @@ -30,4 +30,5 @@ urlpatterns = [ | ||
30 | url(r'^s3direct/', include('s3direct.urls')), | 30 | url(r'^s3direct/', include('s3direct.urls')), |
31 | ] | 31 | ] |
32 | 32 | ||
33 | -urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT) | 33 | +if settings.DEBUG: |
34 | + urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT) |