X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/f393f3067f3d9f1e63e3076f78a78d8d779691fb..2d5e46793f9b1f3f87f972114a4448da8efe740e:/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}), + )