title: i am getting error while giving my ip and localhost name in postgres admin
body: <p>I am getting error while giving my IP address and localhost name in PostgreSQL admin, any help would be appreciated.</p>
  
  <p>You can take a look at my PostgreSQL admin image here:</p>
  
  <p><img src="https://i.stack.imgur.com/p5KFe.png" alt=""></p>
  
  <pre class="lang-py prettyprint-override"><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'myproject',
          'USER': 'myprojectuser',
          'PASSWORD': 'fakepassword',
          'HOST': 'localhost',
          'PORT': '',
      }
  }
  </code></pre>