On 9/29/23 12:53, paulrubin37@gmail.com wrote:
When I tried to use mailman-web I get this error:
django.core.exceptions.ImproperlyConfigured: allauth.account.middleware.AccountMiddleware must be added to settings.MIDDLEWARE
This is because you have django-allauth>=0.56.
If your django-mailman3 version is <=1.3.9 you can downgrade django-allauth with
pip install django-allauth\<0.56
Or you can find where in your django settings MIDDLEWARE is defined and add
'allauth.account.middleware.AccountMiddleware',
to the list, however if you have a /etc/mailman3/settings.py like the one at https://docs.mailman3.org/en/latest/install/virtualenv.html#initial-configur... the imports from mailman_web.settings.base, you need to add the following to /etc/mailman3/settings.py
x = list(MIDDLEWARE)
x.insert(0, 'allauth.account.middleware.AccountMiddleware')
MIDDLEWARE = x
Note either downgrade django-allauth or update MIDDLEWARE, but not both.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan