In docker-entrypoint.sh a Django superuser is created, however the $DJANGO_SUPERUSER_USERNAME is not recognized by docker-entrypoint.sh.
Therefore moved the superuser variables from settings.py to the newly created Docker .env file and pass them through the container by the environment definition in docker-compose.yml
In
docker-entrypoint.sh
a Django superuser is created, however the$DJANGO_SUPERUSER_USERNAME
is not recognized bydocker-entrypoint.sh
. Therefore moved the superuser variables fromsettings.py
to the newly created Docker.env
file and pass them through the container by theenvironment
definition indocker-compose.yml