4

I am trying to start a project based on django-oscar from scratch and stacking with 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'
wadadaaa
  • 309
  • 1
  • 4
  • 21

1 Answers1

4

The error happens because the "b" in "EmailBackend" should not be a capital.

From Oscar Documentation (Wrong):

'oscar.apps.customer.auth_backends.EmailBackend',

SHOULD BE:

'oscar.apps.customer.auth_backends.Emailbackend',


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

Community
  • 1
  • 1
Mauricio
  • 43
  • 3