Commits

Matthew Marshall committed 783804d

Added url stuff for server static files when debug is enabled.

  • Participants
  • Parent commits 2a38dec

Comments (0)

Files changed (1)

     (r'^admin/', include('django.contrib.admin.urls')),
 )
 
+from django.conf import settings
+if settings.DEBUG:
+    urlpatterns += patterns('',
+            (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'htdocs/static'}),)
+
 from freehg.htpasswdutils import monkeypatch_user_model
 monkeypatch_user_model()