From 235600c3c340990e8d6d1b1baee3b749b1e7291a Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Mon, 8 Dec 2008 05:35:20 +0000 Subject: [PATCH] Fixed #9724 -- Added missing import to URLconf example, thanks shacker. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9597 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/howto/static-files.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/howto/static-files.txt b/docs/howto/static-files.txt index 2cb6315545..b0b76bd78b 100644 --- a/docs/howto/static-files.txt +++ b/docs/howto/static-files.txt @@ -6,7 +6,7 @@ How to serve static files .. module:: django.views.static :synopsis: Serving of static files during development. - + Django itself doesn't serve static (media) files, such as images, style sheets, or video. It leaves that job to whichever Web server you choose. @@ -67,6 +67,8 @@ required. For example, if we have a line in ``settings.py`` that says:: ...we could write the above :ref:`URLconf ` entry as:: + from django.conf import settings + ... (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}),