Moved static images urlpattern out of DEBUG case

This commit is contained in:
M.Ravi 2017-07-05 00:07:06 +02:00
parent 4bdae326f7
commit 3304d862cb

View file

@ -42,12 +42,11 @@ urlpatterns += i18n_patterns('',
url(r'^blog/', include('ungleich.urls', namespace='ungleich')),
url(r'^', include('cms.urls'))
)
if settings.DEBUG:
urlpatterns += patterns('',
urlpatterns += patterns('',
url(r'^media/(?P<path>.*)$',
'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT,
}),
)
if settings.DEBUG:
urlpatterns += patterns('',url(r'^__debug__/', include(debug_toolbar.urls)))