Author: gwilson
Date: 2008-12-07 23:36:53 -0600 (Sun, 07 Dec 2008)
New Revision: 9598
Modified:
django/branches/releases/1.0.X/docs/howto/static-files.txt
Log:
[1.0.X] Fixed #9724 -- Added missing import to URLconf example, thanks shacker.
Backport of r9597 from trunk.
Modified: django/branches/releases/1.0.X/docs/howto/static-files.txt
===================================================================
--- django/branches/releases/1.0.X/docs/howto/static-files.txt 2008-12-08
05:35:20 UTC (rev 9597)
+++ django/branches/releases/1.0.X/docs/howto/static-files.txt 2008-12-08
05:36:53 UTC (rev 9598)
@@ -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
-~----------~----~----~----~------~----~------~--~---