On 2024-04-24 10:38, Mark Sapiro wrote:
Try the following in
mailman shell
running as user mailman(venv) $ mailman shell Welcome to the GNU Mailman shell Use commit() to commit changes. Use abort() to discard changes since the last commit. Exit with ctrl+D does an implicit commit() but exit() does not. >>> import requests >>> r = requests.get( ... 'https://LISTS.MYDOMAIN.COM/mailman3/api/templates/list/MYTESTLIST.LISTS.MYDOMAIN.COM/list:user:notice:welcome', ... timeout=5) >>> t.text
Note the URL above is all on one line. This is exactly what Mailman core is doing to get the template assuming the
uri
in the template` table entry is the argument of the requests.get().If this times out, try increasing the timeout= value.
I crossed emails with you on my last post.
I reset the POSTORIUS_TEMPLATE_BASE_URL (in settings.py) back to the domain name, restarted everything, created a new Welcome template (using Postorius) and ...
import requests r = requests.get('https://MYDOMAIN.COM/mailman3/api/templates/list/MYTESTLIST.MYDOMAIN.COM/lis...', timeout=5) r.text 'Another test Welcome message for new members.'
... so all well there. And mailman is running mailman core ...
# cd /opt/mailman/venv/bin/ # ls -la ... -rwxr-xr-x 1 mailman mailman 230 Jan 26 04:00 gunicorn -rwxr-xr-x 1 mailman mailman 231 Jan 26 04:00 mailman -rwxr-xr-x 1 mailman mailman 230 Mar 25 22:18 mailman-web ...