Am 2026-08-09 17:48, schrieb Mark Sapiro:
On 8/9/26 00:30, Torsten wrote:

the traceback is this:

Traceback (most recent call last):
  File "/opt/mailman/web/venv/lib/python3.13/site-packages/django/core/handlers/wsgi.py", line 124, in __call__
     response = self.get_response(request)
  File "/opt/mailman/web/venv/lib/python3.13/site-packages/django/core/handlers/base.py", line 139, in get_response
     set_urlconf(settings.ROOT_URLCONF)
                 ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/mailman/web/venv/lib/python3.13/site-packages/django/conf/__init__.py", line 104, in __getattr__
     val = getattr(_wrapped, name) >
Where should mailman_web.urls be located, also in /etc/mailman3 or rather in the venv of mailman_web in /opt/mailman...?

How did you install Mailman? If you followed <https://docs.mailman3.org/en/latest/install/virtualenv.html>, you should have /etc/mailmasn3/settings.py which is similar to <https://docs.mailman3.org/en/latest/install/virtualenv.html#initial-configuration>. In particular, it should have near the beginning
```
from mailman_web.settings.base import *
from mailman_web.settings.mailman import *
```
The import from mailman_web.settings.base defines
```
ROOT_URLCONF = 'mailman_web.urls'
```
which points to mailman_web/urls.py in the venv's site-packages directory.


In fact, my settings.py does contain these import lines:

import os
from mailman_web.settings.base import *
from mailman_web.settings.mailman import *

BASE_DIR = ('/var/lib/mailman3/web')

SECRET_KEY = '<MYSECRETKEY>'
DEBUG = False

#: Default list of admins who receive the emails from error logging.
ADMINS = ( ('Mailman Suite Admin', '[email protected]'),)

ALLOWED_HOSTS = ['localhost', '127.0.0.1',]
INSTALLED_APPS = [
    'django_mailman3',
    'postorius',
    'hyperkitty',
    # Uncomment the next line to enable the admin:
    'django.contrib.admin',

And I have the mailman_web/urls.py in the venv where mailman was installed.
_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/[email protected]/message/FWWQ4ZXT477KXMYGD4ZBLLH33DA25MZW/

This message sent to [email protected]

Reply via email to