Ticket #3505: contrib_auth.patch
File contrib_auth.patch, 752 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: 27 print backend_path 25 28 backends.append(load_backend(backend_path)) 26 29 return backends 27 30