django postgres connection

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'mydatabase',
        'USER': 'mydatabaseuser',
        'PASSWORD': 'mypassword',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}

Here is what the above code is Doing:
1. We’re using the postgres database engine.
2. We’re using the database name mydatabase.
3. We’re using the database user mydatabaseuser.
4. We’re using the database password mypassword.
5. We’re using the database host localhost.
6. We’re using the database port 5432.