1
0
mirror of https://github.com/django/django.git synced 2025-06-05 19:49:13 +00:00

Small docstring change to django.views.static

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-11-06 21:54:37 +00:00
parent 24f666656f
commit f6ce403140

View File

@ -11,11 +11,11 @@ def serve(request, path, document_root=None, show_indexes=False):
""" """
Serve static files below a given point in the directory structure. Serve static files below a given point in the directory structure.
To use, put a URL pattern like:: To use, put a URL pattern such as::
(r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root' : '/path/to/my/files/'}) (r'^(?P<path>.*)$', 'django.views.static.serve', {'document_root' : '/path/to/my/files/'})
in your URL conf; you must provide the ``document_root`` param. You may in your URLconf. You must provide the ``document_root`` param. You may
also set ``show_indexes`` to ``True`` if you'd like to serve a basic index also set ``show_indexes`` to ``True`` if you'd like to serve a basic index
of the directory. This index view will use the template hardcoded below, of the directory. This index view will use the template hardcoded below,
but if you'd like to override it, you can create a template called but if you'd like to override it, you can create a template called