Superuser can't be created at installation
When running
python3 manage.py createsuperuser
(used in particular by install_Re2o.sh
), it creates a User
and not an Adherent
so the superuser created doesn't work and can't log in.
The command is defined by Django.contrib.auth
and uses settings variable AUTH_USER_MODEL
as the class to use. But AUTH_USER_MODEL = users.Adherent
can't be set as while applying the migration at first install, manage.py
tryes to load the class that does not exists because migrations are not yet applied.