Ticket #9724: static.2.diff

File static.2.diff, 426 bytes (added by Scot Hacker, 16 years ago)

One-liner addition on docs for serving static files

  • static-files.txt

     
    6767
    6868...we could write the above :ref:`URLconf <topics-http-urls>` entry as::
    6969
     70    from project-name import settings
    7071    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
    7172            {'document_root': settings.STATIC_DOC_ROOT}),
    7273
Back to Top