diff --git a/pyi2phosts/urls.py b/pyi2phosts/urls.py index 86cc5ea..88e6a49 100644 --- a/pyi2phosts/urls.py +++ b/pyi2phosts/urls.py @@ -20,3 +20,7 @@ urlpatterns = patterns('', # Uncomment the next line to enable the admin: (r'^admin/', include(admin.site.urls)), ) + +if settings.DEBUG: + urlpatterns += patterns('', (r'static/(?P.*)$', 'django.views.static.serve', + {'document_root': settings.MEDIA_ROOT, 'show_indexes':True}))