added url to serve css as a static page
authorNishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 13:46:11 +0530
changeset 292 b3f4888a78a1
parent 291 5daf523e20b4
child 293 f4e25004169d
added url to serve css as a static page
urls.py
--- a/urls.py	Fri Jan 07 13:37:38 2011 +0530
+++ b/urls.py	Fri Jan 07 13:46:11 2011 +0530
@@ -19,6 +19,9 @@
     # Uncomment the next line to enable the admin:
     (r'^admin/', include(admin.site.urls)),
 
+    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
+            {'document_root': './static/'}),
+
     url(r'^accounts/register/$', register,
         {'form_class': CustomRegistrationForm},
         name='registration_register'),