new test + archived old test
[edumed.git] / edumed / urls.py
index 47055d9..38005aa 100644 (file)
@@ -43,3 +43,8 @@ urlpatterns += (
     url(r'^(?P<url>[^/]*/|)$',
         lambda request, url: flatpage(request, 'turniej/' + url)),
 )
+
+if settings.DEBUG:
+    urlpatterns += (
+        url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
+    )