1
0
mirror of https://github.com/django/django.git synced 2025-07-21 10:09:14 +00:00

[1.0.X] Fixed #9724 -- Added missing import to URLconf example, thanks shacker.

Backport of r9597 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Gary Wilson Jr 2008-12-08 05:36:53 +00:00
parent 89f2a5892d
commit 3c4c1adefb

View File

@ -67,6 +67,8 @@ required. For example, if we have a line in ``settings.py`` that says::
...we could write the above :ref:`URLconf <topics-http-urls>` entry as:: ...we could write the above :ref:`URLconf <topics-http-urls>` entry as::
from django.conf import settings
...
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_DOC_ROOT}), {'document_root': settings.STATIC_DOC_ROOT}),