﻿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
428	[patch] view for serving static files	volsung@…	Jacob	"It would be nice to be able to serve static files from disk while using the test django server.  This can be done with a view and urlpattern.

I've hacked up an implementation at: http://django.pastebin.com/347411
To use it, put that in your view directory (say in static.py), then add
{{{
  DOCUMENT_ROOT = '/your/local/document/root/dir'
}}}
to your settings file, and a pattern:
{{{
  (r'^(?P<path>.*)$', 'foo.apps.foo.views.static.serve')
}}}
at the end of your urlpatterns list.  This will pick up all the URLs that all the previous patterns couldn't match and try to find them under DOCUMENT_ROOT.

Is there any interest in adding this view to the other views django already provides?"	enhancement	closed	Generic views		normal	fixed			Unreviewed	1	0	0	0	0	0
