﻿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
29100	Give useful feedback to developer if a bad url is used for a static file	Håkan Lövdahl	nobody	"in django/core/handlers/base.py there is a problem.
Sometimes when using the statichandler it throws an exception without any useful information.
I would like to propose an update the BaseHandler class

{{{#!python
    def get_response(self, request):
        """"""Return an HttpResponse object for the given HttpRequest.""""""
        # Setup default url resolver for this thread
        set_urlconf(settings.ROOT_URLCONF)

        if self._middleware_chain is None:
            if self.__class__.__name__ == 'StaticFilesHandler':
                uri = '%s' % (request.get_full_path() )
                raise ValueError('Bad path for static file: %s' % uri)
}}}

This would help for keeping the test-outputs nice and clean.
"	Bug	closed	File uploads/storage	2.0	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
