Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #9724 -- Added missing import to URLconf example, thanks shacker.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 235600c3c340990e8d6d1b1baee3b749b1e7291a 1 parent ff3e1a7
@gdub gdub authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 docs/howto/static-files.txt
4 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 ```` that says::
...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}),

0 comments on commit 235600c

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