fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more graphics
[prawokultury.git]
/
prawokultury
/
urls.py
diff --git
a/prawokultury/urls.py
b/prawokultury/urls.py
index
f074158
..
0d9da8c
100644
(file)
--- a/
prawokultury/urls.py
+++ b/
prawokultury/urls.py
@@
-24,5
+24,11
@@
urlpatterns = patterns('',
url(r'^comments/', include('django_comments_xtd.urls')),
) + migdal_urlpatterns
url(r'^comments/', include('django_comments_xtd.urls')),
) + migdal_urlpatterns
+if settings.DEBUG:
+ urlpatterns += patterns('',
+ url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
+ 'document_root': settings.MEDIA_ROOT,
+ }),
+ )
urlpatterns += staticfiles_urlpatterns()
\ No newline at end of file
urlpatterns += staticfiles_urlpatterns()
\ No newline at end of file