Author: gwilson
Date: 2008-12-07 23:35:20 -0600 (Sun, 07 Dec 2008)
New Revision: 9597

Modified:
   django/trunk/docs/howto/static-files.txt
Log:
Fixed #9724 -- Added missing import to URLconf example, thanks shacker.


Modified: django/trunk/docs/howto/static-files.txt
===================================================================
--- django/trunk/docs/howto/static-files.txt    2008-12-08 05:29:43 UTC (rev 
9596)
+++ django/trunk/docs/howto/static-files.txt    2008-12-08 05:35:20 UTC (rev 
9597)
@@ -6,7 +6,7 @@
 
 .. 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 @@
 
 ...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',
             {'document_root': settings.STATIC_DOC_ROOT}),
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to