On Tue, Aug 29, 2017, at 05:43 AM, Henrik Rasmussen wrote:
See 'django-admin hyperkitty_import --help' for more info.
This command is incomplete, you need to specify --settings path-to-settings.py or have DJANGO_SETTINGS_MODULE environment var setup.
(I think settings.py in the previous command should be on PythonPATH).
Alternatively, you can use python manage.py hyperkitty_import --help
.
Is this also valid using Docker-mailman? I don't have a hyperkitty_import django command. How do I import MM2 archives in Docker-MM3?
# docker exec -it mailman-web bash
Here you can do: bash-4.3# python manage.py hyperkitty_import --help
You'd also need to put the archives somewhere it can be seen from
insider the container. The best place I guess would be
/opt/mailman/web/
which is mounted at /opt/mailman-web-data
from
inside the mailman-web container.
bash-4.3# django-admin help
Type 'django-admin help <subcommand>' for help on a specific subcommand.
Available subcommands:
[django] check compilemessages createcachetable dbshell diffsettings dumpdata flush inspectdb loaddata makemessages makemigrations migrate runserver sendtestemail shell showmigrations sqlflush sqlmigrate sqlsequencereset squashmigrations startapp startproject test testserver Note that only Django core commands are listed as settings are not properly configured (error: 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.).
-- Henrik Rasmussen
Mailman-users mailing list mailman-users@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj