Fixed type in static view URL pattern example (refs #428)

git-svn-id: http://code.djangoproject.com/svn/django/trunk@700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-09-26 13:38:49 +00:00
parent adce221d92
commit 2a072999ca
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ def serve(request, path, document_root=None, show_indexes=False):
To use, put a URL pattern like:: To use, put a URL pattern like::
(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 URL conf; 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