Browse Source

Enable media files while in development

producao
Marcio Mazza 10 years ago
parent
commit
11a1639383
  1. 2
      sigi/urls.py

2
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<path>.*)$', 'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT, }),
) + urlpatterns

Loading…
Cancel
Save