Ticket #9724: static3.diff

File static3.diff, 434 bytes (added by Scot Hacker, 16 years ago)

Correct way to import settings

  • static-files.txt

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