﻿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
15270	augment staticfiles_urlpatterns to accept kwarg 'document_root'	Mike Fogel	Jannis Leidel	"I want to be able to trail my urls.py with

{{{
urlpatterns += staticfiles_urlpatterns()
urlpatterns += staticfiles_urlpatterns(prefix=settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
}}}

Rather than the currently suggested best practice from the documentation (http://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#serving-other-directories):

{{{
  urlpatterns += staticfiles_urlpatterns()
  if settings.DEBUG:
      urlpatterns += patterns('django.contrib.staticfiles.views',
           url(r'^media/(?P<path>.*)$', 'serve',
               {'document_root': settings.MEDIA_ROOT}), )
}}} 

If this is agreed to in principle I'll write up a short patch and submit it.  Thanks."		closed	contrib.staticfiles	dev		fixed		Mike Fogel	Accepted	1	1	1	0	0	0
