Ticket #3505: contrib_auth.2.patch

File contrib_auth.2.patch, 724 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:
    2527        backends.append(load_backend(backend_path))
    2628    return backends
    2729
Back to Top