@pandafy
Description: While setting up django-allauth in my Django project, I encountered an issue when attempting to add allauth.account.middleware.AccountMiddleware to the MIDDLEWARE configuration in settings.py. Including this line caused Django to throw a ModuleNotFoundError, as django-allauth does not include any middleware by this name.
Steps to Reproduce:
Add 'allauth.account.middleware.AccountMiddleware' to the MIDDLEWARE list in settings.py.
Run the Django development server with python manage.py runserver.
Observe the following error:
plaintext
Copy code
ModuleNotFoundError: No module named 'allauth.account.middleware'
Expected Behavior: The django-allauth setup should not include middleware references that do not exist in the package. Removing the line resolves the error, as django-allauth does not require any middleware.
Suggested Solution:
Update documentation or installation guides to clarify that django-allauth does not require additional middleware in settings.py, potentially avoiding confusion.
@pandafy Description: While setting up django-allauth in my Django project, I encountered an issue when attempting to add allauth.account.middleware.AccountMiddleware to the MIDDLEWARE configuration in settings.py. Including this line caused Django to throw a ModuleNotFoundError, as django-allauth does not include any middleware by this name.
Steps to Reproduce:
Add 'allauth.account.middleware.AccountMiddleware' to the MIDDLEWARE list in settings.py.
Run the Django development server with python manage.py runserver.
Observe the following error:
plaintext Copy code ModuleNotFoundError: No module named 'allauth.account.middleware' Expected Behavior: The django-allauth setup should not include middleware references that do not exist in the package. Removing the line resolves the error, as django-allauth does not require any middleware.
Suggested Solution:
Update documentation or installation guides to clarify that django-allauth does not require additional middleware in settings.py, potentially avoiding confusion.
System Informatioon: Ubuntu 22.04LTS