mirror of
https://github.com/django/django.git
synced 2025-07-05 02:09:13 +00:00
[1.2.X] Fixed #15532 -- Clarified the error message for unknown auth backends. Thanks to kmike for the report.
Backport of r15713 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
84f398e77c
commit
76f5b4eb5c
@ -13,7 +13,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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user