﻿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
15532	Improve error message for django.contrib.auth.load_backend	Mikhail Korobov	nobody	"Hi all,

If backend can't be imported for some reason, it now raises the following message (see `django.contrib.auth.__init__.py`):
{{{
    except ImportError, e:
        raise ImproperlyConfigured('Error importing authentication backend %s: ""%s""' % (module, e))
}}}

This message contains module name. I think it is a good idea to change this to full backend name in order to simplify debugging:

{{{
    except ImportError, e:
        raise ImproperlyConfigured('Error importing authentication backend %s: ""%s""' % (path, e))
}}} 

My case: custom django-registration registration backend (with supplying auth backend) that sets user.backend to wrong value (import path was incorrect, class name was correct). It was not easy to determine from existing error message which auth backend is failing because backend class name wasn't in error message. "		closed	contrib.auth	dev		fixed			Ready for checkin	0	0	0	0	0	0
