Browse files

Fixed #3505 -- Added handling for the error raised when the user for…

…gets the comma in a single element tuple when defining AUTHENTICATION_BACKENDS. Thanks for the help identifying this problem, Mario Gonzalez <>.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
freakboy3742 committed Jul 13, 2007
1 parent b8d0dc7 commit 6335317a423c9533a13d741c673fc45d1f052121
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/contrib/auth/
@@ -12,6 +12,8 @@ def load_backend(path):
mod = __import__(module, {}, {}, [attr])
except ImportError, e:
raise ImproperlyConfigured, 'Error importing authentication backend %s: "%s"' % (module, e)
+ except ValueError, e:
+ raise ImproperlyConfigured, 'Error importing authentication backends. Is AUTHENTICATION_BACKENDS a correctly defined list or tuple?'
cls = getattr(mod, attr)
except AttributeError:

0 comments on commit 6335317

Please sign in to comment.