Commits

tehfink committed abace65

'show_indexes' makes development a little more user friendly

  • Participants
  • Parent commits 5063b85

Comments (0)

Files changed (1)

File byteflow/urls.py

 # static urls will be disabled in production mode,
 # forcing user to configure httpd
 if settings.DEBUG:
-    urlpatterns += patterns(
-        '',
+    urlpatterns += patterns('',
         url(r'^media/(.*)$', 'django.views.static.serve',
-            {'document_root': settings.MEDIA_ROOT}),
+            {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
         url(r'^static/(.*)$', 'django.views.static.serve',
-            {'document_root': settings.STATIC_ROOT}),
+            {'document_root': settings.STATIC_ROOT, 'show_indexes': True}),
         url(r'^admin-media/(.*)$', 'django.views.static.serve',
             {'document_root': join(dirname(admin.__file__), 'media')}),
-        )
+    )
 
 if appcheck.wpimport:
     urlpatterns += patterns('', url(r'^wpimport/', include('wpimport.urls')),)