title: Django always trying to connect to Mysql using root user
body: <p>I created a Dockerfile to build a docker image for a django Project : </p>
  
  <pre><code>FROM python:3.6
  
  RUN apt-get update \
      &amp;&amp; apt-get install -y --no-install-recommends \
          postgresql-client \
      &amp;&amp; rm -rf /var/lib/apt/lists/*
  
  WORKDIR /usr/src/app
  
  COPY requirements.txt ./
  
  RUN pip install -r requirements.txt
  
  COPY shop /usr/src/app
  
  
  RUN python manage.py migrate
  
  
  EXPOSE 8000
  
  CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
  </code></pre>
  
  <p>And in my settings.py i have this : </p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.mysql',
          'NAME': 'django',
          'USER ': 'admin',
          'HOST': 'mydatabase.eu-west-3.rds.amazonaws.com',
          'PASSWORD': 'adminadmin',
          'PORT': '3306',
      }
  }
  </code></pre>
  
  <p>Now when building the image i'm having this error :</p>
  
  <p>**</p>
  
  <blockquote>
    <p>django.db.utils.OperationalError: (1045, "Access denied for user
    'root'@'172.31.7.119' (using password: YES)")</p>
  </blockquote>
  
  <p>**</p>
  
  <p>What don't understand is why the error talking about a user "root" while in my settings.py it's clearly set to "admin" ?</p>