﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2963	"""How to serve static files"" doc contains invalid example"	Collin Grady <cgrady@…>	Jacob	"On http://www.djangoproject.com/documentation/static_files/ it shows the usage of django.views.static.serve as:

{{{
(r'^site_media/(.*)$', 'django.views.static.serve', {'document_root': '/path/to/media'}),
}}}

But this is invalid. It should be:

{{{
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/media'}),
}}}

The directory index example has the same problem:

{{{
(r'^site_media/(.*)$', 'django.views.static.serve', {'document_root': '/path/to/media', 'show_indexes': True}),
}}}

should be:

{{{
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/path/to/media', 'show_indexes': True}),
}}}"	defect	closed	Documentation		normal	fixed			Unreviewed	0	0	0	0	0	0
