title: Can't log into a commandline created superuser using Django but account gets created
body: <p>I have created a superuser that i can't log into, using the docker-compose.yml commands:</p>
  <pre><code>sh -c &quot;sleep 5 &amp;&amp;
  #&lt;snip&gt;
   echo A-fj... create superuser acct... &amp;&amp;
   echo DJANGO_SUPERUSER_PASSWORD=$DJANGO_SUPERUSER_PASSWORD &amp;&amp;
   echo DJANGO_SUPERUSER_EMAIL=$DJANGO_SUPERUSER_EMAIL &amp;&amp;
   echo DJANGO_SUPERUSER_USERNAME=$DJANGO_SUPERUSER_USERNAME &amp;&amp; 
   python manage.py createsuperuser --noinput --username $DJANGO_SUPERUSER_USERNAME  --email $DJANGO_SUPERUSER_EMAIL &amp;&amp;
   echo Z-fj... create superuser acct... done. &amp;&amp;
  #&lt;snip&gt;
  sleep 5 &quot;
  </code></pre>
  <p>The environment variables display perfectly, and an account gets created that i can see in the db using dBeaver.</p>
  <p>When i manually add a second user via &quot;$python manage.py createsuperuser&quot; dialog, i end up with an account that i can log into.</p>
  <p>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.</p>
  <p>When i compare the passwords from User1(orig) and User2(new), they look to be different formats...</p>
  <p>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...</p>
  <p>Password1:</p>
  <p>!GSU8f8hmNOl1oJBfe1Epk7ocJiXXWQQp3G0mh9TC</p>
  <p>Password2:
  pbkdf2_sha256$120000$IAkHkB3ME9aB$p0hrZPkLeSWK0IafqVQ1dEtR5kgBol7WnU7QELoo6KE=</p>
  <p>I've tried a few different passwords, just in case, but no go</p>
  <p><a href="https://i.stack.imgur.com/3jT7R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3jT7R.png" alt="Screenshot comparing 2 passwords in dBeaver" /></a></p>