21 Oct
2023
21 Oct
'23
4:58 p.m.
On 10/20/23 05:43, Wikinaut wrote:
it has:
# Mailman Web configuration file. # /etc/mailman3/settings.py
# Get the default settings. from mailman_web.settings.base import * from mailman_web.settings.mailman import *
As I said, I don't know what caused your original authentication failure or what fixed it, but it wasn't the addition of
MAILMAN_REST_API_USER = 'restadmin'
MAILMAN_REST_API_PASS = 'restpass'
to /etc/mailman3/settings.py. You can verify this by activating your venv and doing
>>> MAILMAN_REST_API_USER
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'MAILMAN_REST_API_USER' is not defined
>>> MAILMAN_REST_API_USER
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'MAILMAN_REST_API_USER' is not defined
>>> MAILMAN_REST_API_PASS
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'MAILMAN_REST_API_PASS' is not defined
>>> from mailman_web.settings.mailman import *
>>> MAILMAN_REST_API_USER
'restadmin'
>>> MAILMAN_REST_API_PASS
'restpass'
>>>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan