X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/44090c986d9a16f6913047c25319c446bb9308ad..6f1d6a6fe9607eb612d2dc95340d414dda043e92:/prawokultury/urls.py diff --git a/prawokultury/urls.py b/prawokultury/urls.py index f074158..0d9da8c 100644 --- a/prawokultury/urls.py +++ b/prawokultury/urls.py @@ -24,5 +24,11 @@ urlpatterns = patterns('', url(r'^comments/', include('django_comments_xtd.urls')), ) + migdal_urlpatterns +if settings.DEBUG: + urlpatterns += patterns('', + url(r'^media/(?P.*)$', 'django.views.static.serve', { + 'document_root': settings.MEDIA_ROOT, + }), + ) urlpatterns += staticfiles_urlpatterns() \ No newline at end of file