forked from 0x2620/pandora
don't serve debug data by default
This commit is contained in:
parent
6fd8d2aef3
commit
96bd3d6df8
1 changed files with 7 additions and 7 deletions
|
@ -69,14 +69,14 @@ urlpatterns = [
|
||||||
url(r'^sitemap.xml$', item.views.sitemap_xml),
|
url(r'^sitemap.xml$', item.views.sitemap_xml),
|
||||||
url(r'', include(item.urls)),
|
url(r'', include(item.urls)),
|
||||||
]
|
]
|
||||||
#if settings.DEBUG:
|
|
||||||
#sould this not be enabled by default? nginx should handle those
|
#sould this not be enabled by default? nginx should handle those
|
||||||
urlpatterns += [
|
if settings.DEBUG:
|
||||||
url(r'^data/(?P<path>.*)$', django.views.static.serve,
|
urlpatterns += [
|
||||||
{'document_root': settings.MEDIA_ROOT}),
|
url(r'^data/(?P<path>.*)$', django.views.static.serve,
|
||||||
url(r'^static/(?P<path>.*)$', django.views.static.serve,
|
{'document_root': settings.MEDIA_ROOT}),
|
||||||
{'document_root': settings.STATIC_ROOT}),
|
url(r'^static/(?P<path>.*)$', django.views.static.serve,
|
||||||
]
|
{'document_root': settings.STATIC_ROOT}),
|
||||||
|
]
|
||||||
|
|
||||||
urlpatterns += [
|
urlpatterns += [
|
||||||
url(r'^(V[a-z0-9]+)$', urlalias.views.padma_video),
|
url(r'^(V[a-z0-9]+)$', urlalias.views.padma_video),
|
||||||
|
|
Loading…
Reference in a new issue