[Mailman-Users] Server Migration

Mark Sapiro mark at msapiro.net
Fri Feb 14 12:28:08 EST 2020

On 2/14/20 9:11 AM, Dennis Putnam wrote:
> Hi Mark,
> I guess there needs to be a caveat in the documentation indicating
> different distros will need different commands. This project is turning
> into a nightmare since I know nothing about django and they way mailman
> 3 is installed is radically different. Hyperkitty was installed but when
> I run the command it fails.
> # django-admin hyperkitty_import -l rushtalk at csdco.com rushtalk.mbox
> No Django settings specified.
> Unknown command: 'hyperkitty_import'
> Type 'django-admin help' for usage.

The django-admin command you are running does not specify PYTHONPATH and
DJANGO_SETTINGS_MODULE. I use a wrapper command like:

. /opt/mailman/mm/venv/bin/activate
cd /opt/mailman/mm
export PYTHONPATH=/opt/mailman/mm
django-admin $@

to activate the virtualenv that Mailman is installed in, set things for
the environment and invoke the actual django-admin command. There may
not be a virtualenv in your case, and you don't know the appropriate

We don't know these answers. You need to be talking with the people who
installed Mailman on the server.

> I'm also struggling with the web UI which is what prompted my other
> email about where the icons are stored. It almost seems like the web UI
> is just a radically different and does not use Apache in the same way
> any more.

That is true. It is a Django 'project' Django is a wsgi application
which may run under mod_wsgi in Apache or a wsgi server like uwsgi or
gunicorn that is proxied to from apache.

Very little of the detail you know about Mailman 2.1 is relevant to
Mailman 3, particularly where the web server is concerned.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/mailman-users/attachments/20200214/7f6e4296/attachment-0001.sig>

More information about the Mailman-Users mailing list