Skip to content

Commit a40b3bb

Browse files
author
Alex Dijkstra
authored
Update urls.py
1 parent 319154c commit a40b3bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

project_name/urls.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ def bad(request):
2424

2525

2626
]
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

Comments
 (0)