Internal Server Error: /mailman3/postorius/lists/.../held_messages - humanize: where to put?

Hi,
I have setup in Debian Trixie mailman3-full and came that far, that I have created a mailing list. I can sent emails to the members.
However when I send from an email which is non-member the message is held. If I want to accept this message as list admin, I get:
An error occurred while processing your request.
And I get an email:
`Internal Server Error: /mailman3/postorius/.../held_messages
TemplateSyntaxError at /postorius/lists/.../held_messages 'humanize' is not a registered tag library. Must be one of: account admin_list admin_modify admin_urls allauth bootstrap_tags cache compress d_gravatar date_helpers debugger_tags decorate gravatar highlight highlighting hk_generic hk_haystack i18n indent_text l10n log markdown membership_helpers more_like_this nav_helpers p_gravatar pagination postorius_helpers rest_framework socialaccount static syntax_color tz widont
Request Method: GET Request URL: https://.../mailman3/postorius/lists/.../held_messages Django Version: 4.2.23 Python Executable: /usr/bin/uwsgi-core Python Version: 3.13.5 Python Path: ['.', '', '/usr/lib/python313.zip', '/usr/lib/python3.13', '/usr/lib/python3.13/lib-dynload', '/usr/local/lib/python3.13/dist-packages', '/usr/lib/python3/dist-packages', '/usr/lib/python3/dist-packages/setuptools/_vendor'] . . .`
humanize is in the INSTALLED_APPS section in /usr/share/mailman3-web/settings.py. In this file I I configured Django. However it's not in the Python path as written in the error email above. So maybe I have to find a different settings file.
Can anyone advise me where I can find the error I have in my configuration?
Thanks in advance.
Flo

On 8/25/25 12:42, Flo via Mailman-users wrote:
Hi,
I have setup in Debian Trixie mailman3-full and came that far, that I have created a mailing list. I can sent emails to the members.
Your primary support resource for the Debian package is Debian. See https://wiki.list.org/x/12812344
However when I send from an email which is non-member the message is held. If I want to accept this message as list admin, I get:
An error occurred while processing your request.
And I get an email:
`Internal Server Error: /mailman3/postorius/.../held_messages
TemplateSyntaxError at /postorius/lists/.../held_messages 'humanize' is not a registered tag library. Must be one of:
You need to add 'django.contrib.humanize' to the INSTALLED_APPS list in settings.py. If you Debian packages don't do this, it should definitely be reported to Debian.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 8/25/25 23:36, Mark Sapiro wrote:
On 8/25/25 12:42, Flo via Mailman-users wrote:
Hi,
I have setup in Debian Trixie mailman3-full and came that far, that I have created a mailing list. I can sent emails to the members.
Your primary support resource for the Debian package is Debian. See https://wiki.list.org/x/12812344
That's right.
You need to add 'django.contrib.humanize' to the INSTALLED_APPS list in settings.py. If you Debian packages don't do this, it should definitely be reported to Debian.
In /usr/share/mailman3-web/settings.py there is:
INSTALLED_APPS = (
...
'django.contrib.humanize',
...
)
And POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost:8001' I think this has also something to do with it. But looks correct for me.
Flo
But maybe the path

Flo via Mailman-users writes:
In /usr/share/mailman3-web/settings.py there is:
INSTALLED_APPS = ( ... 'django.contrib.humanize', ... )
Right, that's why Python is looking for it. Since it's not being found, I guess there's a version skew between Mailman and django.contrib. The first thing to do is to make sure all your packages are up to date. Check if the django package (or maybe django-contrib if it's a separate package) is pinned to a particular old version, and consider unpinning and upgrading it. If they are up to date, and you're skilled with Debian, you may consider adding more recent package sources (testing or experimental) and install Django from those sources.
If that's not appealing I would strongly discourage trying to add the humanize package from Django upstream. That is a real can of worms. If you wish to continue using the Debian packages, you will need to get help from the Debian maintainers. I wouldn't be surprised if they already are planning to do something about this issue.
The alternative would be to uninstall the Debian package and install the most recent Mailman packages from PyPI in a Python virtual environment /opt. This probably requires installing the Debian python3-venv package. This is not terribly difficult, the instructions at docs.mailman3.org/en/latest are good, and you're welcome to ask for help on this list. We recommend this because you will get better support that way.
And POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost:8001' I think this has also something to do with it.
That has nothing to do with it, they are quite unrelated.
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan

On 8/25/25 15:07, Flo via Mailman-users wrote:
In /usr/share/mailman3-web/settings.py there is:
INSTALLED_APPS = ( ... 'django.contrib.humanize', ... )
Then I don't understand why you are getting the error. django.contrib.humanize is required because it is referenced by django-allauth in templates here https://codeberg.org/allauth/django-allauth/src/commit/5baeee79b2915dbb881d3... and here https://codeberg.org/allauth/django-allauth/src/commit/5baeee79b2915dbb881d3...
If django.contrib.humanize is loaded, those references should be satisfied.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Flo
-
Mark Sapiro
-
Stephen J. Turnbull