From 11a1639383c5644e8e56aebc69825cfa32c8c2d3 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Wed, 8 Oct 2014 21:25:39 -0300 Subject: [PATCH] Enable media files while in development --- sigi/urls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sigi/urls.py b/sigi/urls.py index 69cfbb9..f958508 100644 --- a/sigi/urls.py +++ b/sigi/urls.py @@ -27,4 +27,6 @@ if settings.DEBUG: url(r'^404/$', TemplateView.as_view(template_name='404.html')), url(r'^500/$', TemplateView.as_view(template_name='500.html')), url(r'^503/$', TemplateView.as_view(template_name='503.html')), + url(r'^media/(?P.*)$', 'django.views.static.serve', { + 'document_root': settings.MEDIA_ROOT, }), ) + urlpatterns