I have created a superuser that i can't log into, using the docker-compose.yml commands:
sh -c "sleep 5 &&
#<snip>
echo A-fj... create superuser acct... &&
echo DJANGO_SUPERUSER_PASSWORD=$DJANGO_SUPERUSER_PASSWORD &&
echo DJANGO_SUPERUSER_EMAIL=$DJANGO_SUPERUSER_EMAIL &&
echo DJANGO_SUPERUSER_USERNAME=$DJANGO_SUPERUSER_USERNAME &&
python manage.py createsuperuser --noinput --username $DJANGO_SUPERUSER_USERNAME --email $DJANGO_SUPERUSER_EMAIL &&
echo Z-fj... create superuser acct... done. &&
#<snip>
sleep 5 "
The environment variables display perfectly, and an account gets created that i can see in the db using dBeaver.
When i manually add a second user via "$python manage.py createsuperuser" dialog, i end up with an account that i can log into.
When i copy the password from User2 to User1, i can then log into User1 using User2 password, so it seems to be a password thing.
When i compare the passwords from User1(orig) and User2(new), they look to be different formats...
I'm not sure, but thinking it may be a clue to the problem... Password1 is shorter and has no sections where Password2 is longer...
Password1:
!GSU8f8hmNOl1oJBfe1Epk7ocJiXXWQQp3G0mh9TC
Password2: pbkdf2_sha256$120000$IAkHkB3ME9aB$p0hrZPkLeSWK0IafqVQ1dEtR5kgBol7WnU7QELoo6KE=
I've tried a few different passwords, just in case, but no go
You should set
DJANGO_SUPERUSER_PASSWORD
environment variable in non interactive mode otherwise the password would not be set (Django password would be set to unusable string in this case)as documentation states