fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'search'
[prawokultury.git]
/
prawokultury
/
urls.py
diff --git
a/prawokultury/urls.py
b/prawokultury/urls.py
index
6da0510
..
436cb0e
100644
(file)
--- a/
prawokultury/urls.py
+++ b/
prawokultury/urls.py
@@
-25,5
+25,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()
urlpatterns += staticfiles_urlpatterns()