fnp
/
edumed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfd5cf6
)
serve media on debug
author
Jan Szejko
<janek37@gmail.com>
Tue, 13 Mar 2018 10:55:17 +0000
(11:55 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Tue, 13 Mar 2018 10:55:17 +0000
(11:55 +0100)
edumed/urls.py
patch
|
blob
|
history
diff --git
a/edumed/urls.py
b/edumed/urls.py
index
47055d9
..
38005aa
100644
(file)
--- a/
edumed/urls.py
+++ b/
edumed/urls.py
@@
-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}),
+ )