Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 235600c3c340990e8d6d1b1baee3b749b1e7291a 1 parent ff3e1a7
Gary Wilson Jr. authored December 08, 2008

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  docs/howto/static-files.txt
4  docs/howto/static-files.txt
@@ -6,7 +6,7 @@ How to serve static files
6 6
 
7 7
 .. module:: django.views.static
8 8
    :synopsis: Serving of static files during development.
9  
- 
  9
+
10 10
 Django itself doesn't serve static (media) files, such as images, style sheets,
11 11
 or video. It leaves that job to whichever Web server you choose.
12 12
 
@@ -67,6 +67,8 @@ required. For example, if we have a line in ``settings.py`` that says::
67 67
 
68 68
 ...we could write the above :ref:`URLconf <topics-http-urls>` entry as::
69 69
 
  70
+    from django.conf import settings
  71
+    ...
70 72
     (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
71 73
             {'document_root': settings.STATIC_DOC_ROOT}),
72 74
 

0 notes on commit 235600c

Please sign in to comment.
Something went wrong with that request. Please try again.