Ticket #3505: contrib_auth.patch

File contrib_auth.patch, 752 bytes (added by MarioGonzalez <gonzalemario t@…>, 17 years ago)
  • contrib/auth/__init__.py

     
    1212        mod = __import__(module, {}, {}, [attr])
    1313    except ImportError, e:
    1414        raise ImproperlyConfigured, 'Error importing authentication backend %s: "%s"' % (module, e)
     15    except ValueError, e:
     16        raise ValueError, e
    1517    try:
    1618        cls = getattr(mod, attr)
    1719    except AttributeError:
     
    2224    from django.conf import settings
    2325    backends = []
    2426    for backend_path in settings.AUTHENTICATION_BACKENDS:
     27        print backend_path
    2528        backends.append(load_backend(backend_path))
    2629    return backends
    2730
Back to Top