title: Python/Django database username and password?
body: <p>I'm learning python and I want to understand the database section and when setting up for postgresql database.</p>
  
  <p><a href="https://docs.djangoproject.com/en/1.9/ref/settings/#databases" rel="noreferrer">https://docs.djangoproject.com/en/1.9/ref/settings/#databases</a></p>
  
  <p>Are all the values necessary? </p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql',
          'NAME': 'mydatabase',
          'USER': 'mydatabaseuser',
          'PASSWORD': 'mypassword',
          'HOST': '127.0.0.1',
          'PORT': '5432',
      }
  }
  </code></pre>
  
  <p>Specifically <code>USER</code>, <code>PASSWORD</code>, <code>HOST</code>, <code>PORT</code>? Is <code>USER</code> and <code>PASSWORD</code> values that we can create in django settings.py? Or is this the actual <code>USER/PASSWORD</code> of the database? Also, HOST is currently <code>127.0.0.1</code> for localhost, but when deploying to production, do I change this to the domain name (<a href="http://www.example.com" rel="noreferrer">http://www.example.com</a>)? And <code>PORT</code>, is it necessary?</p>