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 rusht...@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: #!/bin/bash . /opt/mailman/mm/venv/bin/activate cd /opt/mailman/mm export PYTHONPATH=/opt/mailman/mm export DJANGO_SETTINGS_MODULE=settings 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 values for PYTHONPATH and DJANGO_SETTINGS_MODULE. 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 <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org