
June 20, 2025
2:44 a.m.
Actually, it assumes whatever the default is which might be http://localhost:8000. See https://gitlab.com/mailman/mailman-web/-/blob/master/mailman_web/settings/ma...
This is just tossing out some ideas, and it may not be worth it, but in the code instead of hardcoding the variable:
POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost:8000'
Compute the value dynamically based on the function request.build_absolute_uri() , or request.get_full_path().
Still allowing the user to override POSTORIUS_TEMPLATE_BASE_URL in their own settings.py file, but in the absence of settings.py, it uses "absolute_uri" from the request session.