Changed the URL mapper for loading static content in debug mode. Appended static/.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Thu, 14 Jan 2010 19:18:08 +0530
changeset 85 07b48746fe29
parent 84 d01c62c2a628
child 86 cbe77a26e7a3
Changed the URL mapper for loading static content in debug mode. Appended static/.
project/urls.py
--- a/project/urls.py	Thu Jan 14 15:54:34 2010 +0530
+++ b/project/urls.py	Thu Jan 14 19:18:08 2010 +0530
@@ -99,6 +99,6 @@
     urlpatterns += patterns('',
         (r'^media/(?P<path>.*)$', 'django.views.static.serve',
          {'document_root': settings.MEDIA_ROOT}),
-        (r'^(?P<path>.*)$', 'django.views.static.serve',
+        (r'^static/(?P<path>.*)$', 'django.views.static.serve',
          {'document_root': settings.STATIC_ROOT}),
     )