Kaydet (Commit) 22347c89 authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

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

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
üst 03717325
...@@ -14,7 +14,7 @@ def load_backend(path): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment