29 Apr
2023
29 Apr
'23
5:24 a.m.
Thank you very much. You wrote:
[...]
I tried
django-admin migrate --pythonpath /etc/mailman3
, and got the same result.Then you may need
django-admin migrate --pythonpath /etc/mailman3 --settings settings
Yes, that worked!
What I have is this shell file that I use to invoke django-admin
#!/bin/bash . /opt/mailman/mm/venv/bin/activate cd /opt/mailman/mm export PYTHONPATH=/opt/mailman/mm
So you have settings.py in /opt/mailman/mm rather than in /etc/mailman3?
export DJANGO_SETTINGS_MODULE=settings django-admin $@
Thanks Lars