On 10/12/26 5:12 AM, Andreas Vetter wrote:
First try, first problem:
(venv) mailman@lists:~> django-admin shell Python 3.11.15 (main, Aug 14 2026, 20:29:30) [GCC] on linux Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole)
from hyperkitty.models import MailingList Traceback (most recent call last):
...
django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
I don't see INSTALLED_APPS in any of the configuration files. Where should this be defined? It is defined in mailman_web.settings.base which is imported by /etc/mailman3/settings.py. The issue is your django-admin command is not accessing the /etc/mailman3/settings.py file.
Did you ever try the interaction in <https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/ZA4EHLWBZITGZB275S435EBF4HRCC4EP/>? If so, what is the difference between the django-admin you ran there and this one?
In any case try
PYTHONPATH=/etc/mailman3 DJANGO_SETTINGS_MODULE=settings django-admin shell
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan