Templates do not work
I created some templates in Postorius to get personalized notifications when there are moderator requests. The notifications I get seem to be the standard texts. When I look into mailman/ mm/var/templates the directory is empty. Nevertheless, the templates I create in Postorius seem to be stored (where?), they just do not work.
Eggert Ehmke writes:
When I look into mailman/mm/var/templates the directory is empty. Nevertheless, the templates I create in Postorius seem to be stored (where?),
That is expected when you create templates in Postorius, because they are stored in the RDBMS (eg, PostgreSQL).
they just do not work.
My first guess would be that there's a language mismatch. You need to create a variant template for each language that is used. I'm not sure offhand how the system chooses the language for stored templates vs the language for templates used for messages (I suspect the used template is the one for the list's default language), but an incomplete set of variant templates and a mismatch between the language the variant template was created in and the default language of the list is what I would guess.
Steve
On 4/28/22 02:50, Eggert Ehmke wrote:
I created some templates in Postorius to get personalized notifications when there are moderator requests. The notifications I get seem to be the standard texts. When I look into mailman/ mm/var/templates the directory is empty. Nevertheless, the templates I create in Postorius seem to be stored (where?), they just do not work.
As Steve said the templates are stored in the database.
I suspect the issue is and incorrect value for
POSTORIUS_TEMPLATE_BASE_URL
in your Django settings. This is used to
construct the URI to retrieve the template. The URI is stored in the
template
table in the database. It is normally just http(s)://host.name/
If this is the issue, after correcting the setting and restarting the
web service, you will need to delete and re-enter the template in
Postorius to correct the template
table entry.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
It seems my apache vhost settings are messed up. To access the postorius page, I have to use URLs like this:
https://lists.[1]tld_/mailman3/mailman3/lists/_
That does not look right, and maybe is the cause of my problem. There are very few guides to set up apache virtual hosts with mailman virtualenv installation. Any hint?
Am Donnerstag, 28. April 2022, 19:02:42 CEST schrieb Mark Sapiro:
On 4/28/22 02:50, Eggert Ehmke wrote:
I created some templates in Postorius to get personalized notifications when there are moderator requests. The notifications I get seem to be the standard texts. When I look into mailman/ mm/var/templates the directory is empty. Nevertheless, the templates I create in Postorius seem to be stored (where?), they just do not work.
As Steve said the templates are stored in the database.
I suspect the issue is and incorrect value for
POSTORIUS_TEMPLATE_BASE_URL
in your Django settings. This is used to construct the URI to retrieve the template. The URI is stored in thetemplate
table in the database. It is normally justhttp(s)://host.name/
If this is the issue, after correcting the setting and restarting the web service, you will need to delete and re-enter the template in Postorius to correct the
template
table entry.
On 4/28/22 15:59, Eggert Ehmke wrote:
It seems my apache vhost settings are messed up. To access the postorius page, I have to use URLs like this:
https://lists.[1]tld_/mailman3/mailman3/lists/_
I would try
POSTORIUS_TEMPLATE_BASE_URL = 'https://lists.ftv-spandau.de/mailman3/'
I think that should work.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank, you, I cleaned up my apache config, now the url works. Problem solved.
participants (3)
-
Eggert Ehmke
-
Mark Sapiro
-
Stephen J. Turnbull