﻿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
879	Error when loading malformed MIDDLEWARE_CLASSES path	anonymous	Adrian Holovaty	"If the settings file defines the middleware classes like this:

{{{
MIDDLEWARE_CLASSES = ('foo',)
}}}

The following code found in /core/handlers/base.py when calling load_middleware():

{{{
        for middleware_path in settings.MIDDLEWARE_CLASSES:
            try:
                dot = middleware_path.rindex('.')
                mw_module, mw_classname = middleware_path[:dot], middleware_path[dot+1:]
            except ValueError:
                raise exceptions.ImproperlyConfigured, '""%s"" does not look like a middleware module' % (middleware_path)
}}}

will throw a !ValueError when attempting the rindex('.') method call."	defect	closed	Core (Other)		normal	fixed	middleware core	nslater@…	Unreviewed	0	0	0	0	0	0
