In this video we will see how to configure the PostgreSQL database in a Django project.
The server has CentOS operating system and cPanel control panel.
Install:
pip install psycopg2
Cadena de conexión en settings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'HEREDB',
'USER': 'HEREUSER',
'PASSWORD': 'HEREPASSWORD',
'HOST': 'localhost',
'PORT': '5432',
}
}