From 2a072999cade3a0ce8ae3b4bf09cf0d6cb06f257 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 26 Sep 2005 13:38:49 +0000 Subject: [PATCH] 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 --- django/views/static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).*)$', 'django.views.static.serve', {'document_root' : '/path/to/my/files/'}) + (r'^(?P.*)$', '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