Moved static images urlpattern out of DEBUG case
This commit is contained in:
parent
4bdae326f7
commit
3304d862cb
1 changed files with 6 additions and 7 deletions
|
@ -42,12 +42,11 @@ urlpatterns += i18n_patterns('',
|
||||||
url(r'^blog/', include('ungleich.urls', namespace='ungleich')),
|
url(r'^blog/', include('ungleich.urls', namespace='ungleich')),
|
||||||
url(r'^', include('cms.urls'))
|
url(r'^', include('cms.urls'))
|
||||||
)
|
)
|
||||||
|
urlpatterns += patterns('',
|
||||||
|
url(r'^media/(?P<path>.*)$',
|
||||||
|
'django.views.static.serve', {
|
||||||
|
'document_root': settings.MEDIA_ROOT,
|
||||||
|
}),
|
||||||
|
)
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
urlpatterns += patterns('',
|
|
||||||
url(r'^media/(?P<path>.*)$',
|
|
||||||
'django.views.static.serve', {
|
|
||||||
'document_root': settings.MEDIA_ROOT,
|
|
||||||
}),
|
|
||||||
)
|
|
||||||
urlpatterns += patterns('',url(r'^__debug__/', include(debug_toolbar.urls)))
|
urlpatterns += patterns('',url(r'^__debug__/', include(debug_toolbar.urls)))
|
||||||
|
|
Loading…
Reference in a new issue