Fixed #15532 -- Clarified the error message for unknown auth backends. Thanks to kmike for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-03-03 00:25:02 +00:00
parent 03717325dd
commit 22347c89d8
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ def load_backend(path):
try: try:
mod = import_module(module) mod = import_module(module)
except ImportError, e: except ImportError, e:
raise ImproperlyConfigured('Error importing authentication backend %s: "%s"' % (module, e)) raise ImproperlyConfigured('Error importing authentication backend %s: "%s"' % (path, e))
except ValueError, e: except ValueError, e:
raise ImproperlyConfigured('Error importing authentication backends. Is AUTHENTICATION_BACKENDS a correctly defined list or tuple?') raise ImproperlyConfigured('Error importing authentication backends. Is AUTHENTICATION_BACKENDS a correctly defined list or tuple?')
try: try: