The module "oscar.apps.customer.auth_backends" does not define the attribute / class "EmailBackend"

I'm trying to start a django-oscar based project from scratch and stack with a problem

ImproperlyConfigured at /
Module "oscar.apps.customer.auth_backends" does not define a "EmailBackend" attribute/class

My settings.py

AUTHENTICATION_BACKENDS = (
    'oscar.apps.customer.auth_backends.EmailBackend',
    'django.contrib.auth.backends.ModelBackend',
)

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
+4
source share
1 answer

The error occurs because the "b" in the "EmailBackend" does not have to be capital.

From the Oscar documentation (False):

'oscar.apps.customer.auth_backends.Email In ackend',

SHOULD BE:

'oscar.apps.customer.auth_backends.Email ackend',


This was mentioned above, but not very clear. Hope this helps others who stumble upon this :)

+4
source

All Articles