X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/f393f3067f3d9f1e63e3076f78a78d8d779691fb..d070532922b89dc42764c5e6bfd3e550706a51ad:/edumed/urls.py diff --git a/edumed/urls.py b/edumed/urls.py index 47055d9..38005aa 100644 --- a/edumed/urls.py +++ b/edumed/urls.py @@ -43,3 +43,8 @@ urlpatterns += ( url(r'^(?P[^/]*/|)$', lambda request, url: flatpage(request, 'turniej/' + url)), ) + +if settings.DEBUG: + urlpatterns += ( + url(r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), + )