fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hook mailchimp to contact forms
[edumed.git]
/
edumed
/
urls.py
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}),
+ )