We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 319154c commit a40b3bbCopy full SHA for a40b3bb
project_name/urls.py
@@ -24,3 +24,7 @@ def bad(request):
24
25
26
]
27
+
28
+if settings.DEBUG:
29
+ # static files (images, css, javascript, etc.)
30
+ urlpatterns += [ url(r'^media/(?P<path>.*)$', serve, {'document_root': settings.MEDIA_ROOT})]
0 commit comments