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  

Comments

RSS Icon Subscribe to comments
Posted By: Jacky888 on August 4, 2018

rootear lanix ilium lt510 bestandroidtoroot

You need to login to post a comment.