django connect to postgres code example
Example: how to use postgresql with django
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'your_database_project_name',
'USER': 'your_postgres_username',
'PASSWORD': 'your_postgres_password',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}