Ticket #3505: contrib_auth.2.patch
File contrib_auth.2.patch, 724 bytes (added by , 17 years ago) |
---|
-
contrib/auth/__init__.py
12 12 mod = __import__(module, {}, {}, [attr]) 13 13 except ImportError, e: 14 14 raise ImproperlyConfigured, 'Error importing authentication backend %s: "%s"' % (module, e) 15 except ValueError, e: 16 raise ValueError, e 15 17 try: 16 18 cls = getattr(mod, attr) 17 19 except AttributeError: … … 22 24 from django.conf import settings 23 25 backends = [] 24 26 for backend_path in settings.AUTHENTICATION_BACKENDS: 25 27 backends.append(load_backend(backend_path)) 26 28 return backends 27 29