X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/9c8f0adb8bb6c8b86517798d70c2c8dcd198e721..fb2d5b78a90d3042f7eb5e8e419fcbe6e62fd00d:/prawokultury/urls.py diff --git a/prawokultury/urls.py b/prawokultury/urls.py index 6da0510..436cb0e 100644 --- a/prawokultury/urls.py +++ b/prawokultury/urls.py @@ -25,5 +25,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()