Browse files

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
  • Loading branch information...
1 parent 0371732 commit 22347c89d8941be0d08e39839503c8cc00ca263c @freakboy3742 freakboy3742 committed Mar 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/auth/__init__.py
View
2 django/contrib/auth/__init__.py
@@ -14,7 +14,7 @@ def load_backend(path):
try:
mod = import_module(module)
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:
raise ImproperlyConfigured('Error importing authentication backends. Is AUTHENTICATION_BACKENDS a correctly defined list or tuple?')
try:

0 comments on commit 22347c8

Please sign in to comment.