Ticket #9724: static.diff

File static.diff, 426 bytes (added by shacker, 6 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