diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-09-26 13:38:49 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-09-26 13:38:49 +0000 |
| commit | 2a072999cade3a0ce8ae3b4bf09cf0d6cb06f257 (patch) | |
| tree | a690da407ff10eb7fd9983ad45c1f90d0bf2eb2b | |
| parent | adce221d92c12f7603ede272dbc45fc97579039e (diff) | |
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
| -rw-r--r-- | django/views/static.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/static.py b/django/views/static.py index a398c31ed7..facc19fbb7 100644 --- a/django/views/static.py +++ b/django/views/static.py @@ -13,7 +13,7 @@ def serve(request, path, document_root=None, show_indexes=False): 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 also set ``show_indexes`` to ``True`` if you'd like to serve a basic index |
