Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 2a072999cade3a0ce8ae3b4bf09cf0d6cb06f257 1 parent adce221
Jacob Kaplan-Moss jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/views/static.py
2  django/views/static.py
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.