mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-09 06:18:05 +00:00
pyi2phosts/urls.py: allow django to serve static files when debug enabled
This commit is contained in:
parent
e8d0c8b07a
commit
2e5ba8d88d
@ -20,3 +20,7 @@ urlpatterns = patterns('',
|
|||||||
# Uncomment the next line to enable the admin:
|
# Uncomment the next line to enable the admin:
|
||||||
(r'^admin/', include(admin.site.urls)),
|
(r'^admin/', include(admin.site.urls)),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if settings.DEBUG:
|
||||||
|
urlpatterns += patterns('', (r'static/(?P<path>.*)$', 'django.views.static.serve',
|
||||||
|
{'document_root': settings.MEDIA_ROOT, 'show_indexes':True}))
|
||||||
|
Loading…
Reference in New Issue
Block a user