Return to Snippet

Revision: 9743
at November 19, 2008 14:56 by tclancy


Updated Code
from django.conf import settings

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^includes/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'C:/ClientWork/thosecleverkids/includes'}),
    )

Revision: 9742
at November 19, 2008 13:57 by tclancy


Initial Code
if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^includes/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'C:/ClientWork/thosecleverkids/includes'}),
    )

Initial URL

                                

Initial Description
Add to bottom of urls.py

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

Initial Tags

                                

Initial Language
Django