On 7/26/20 9:39 AM, Odhiambo Washington wrote:
Hi,
In my quest to create a superuser, I followed another HOWTO - https://docs.mailman3.org/en/latest/devsetup.html
(venv) [root@gw /opt/mailman/git/mailman-suite/mailman-suite_project]# python manage.py migrate Traceback (most recent call last):
manage.py migrate (or django-admin migrate) is part if the mailman-post-update script. It doesn't work here because when you run it this way, it doesn't get your settings.py.
ModuleNotFoundError: No module named '_sqlite3'
And it's looking for sqlite3 because that's the default database.
*<==============================================================* (venv) [root@gw /opt/mailman/git/mailman-suite/mailman-suite_project]# pip install pysqlite3
You don't need this. You need to run django-admin with the correct settings.
So I figured out that I need to put my own settings_local.py into the directory and let the command rely on MySQL as the database backend since by default, it uses sqlite3 backend.
But the question then is WHY is this not documented on the above page???
Because that's not relevant to what you are doing. You are trying to install Mailman for production, not development.
How can I delete the superuser after creating it??
The only django-admin or manage.py you should run is
/opt/mailman/mm/bin/djhango-admin. You can run django-admin createsuperuser
to create a superuser. If you want to delete one, you
need to go to the Django admin web UI - should be
http://your.server/admin - login as a superuser and go to the Users page
and delete it. You should probably do this as a different superuser
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan