Posted By

tclancy on 11/19/08


Tagged

debugging localhost


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

kevcow


Django Serve Static Files from Local Directory (development-only)


 / Published in: Django
 

Add to bottom of urls.py

  1. from django.conf import settings
  2.  
  3. if settings.DEBUG:
  4. urlpatterns += patterns('',
  5. (r'^includes/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'C:/ClientWork/thosecleverkids/includes'}),
  6. )

Report this snippet  

You need to login to post a comment.