title: How do you connect to Google Cloud Postgresql via Django framework?
body: <p>This is the default configuration one would have for a local postgresql connection using Django framework in setting.py file:</p>
  
  <pre><code>DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.postgresql_psycopg2',
          'NAME': 'LOCAL_DB_NAME',
          'USER': 'LOCAL_DB_USER',
          'PASSWORD': 'LOCAL_DB_PASS',
          'HOST': '127.0.0.1',
          'PORT': '5432',
      }
  }
  </code></pre>
  
  <p>How to configure it to work with Google Cloud Postgresql managed database?</p>