PostgreSQL configuration in Django. CentOS hosting with cPanel



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 psycopg2 # pip install psycopg2 Connection string in settings.py DATABASES = {‘default’: {‘ENGINE’: ‘django.db.backends.postgresql_psycopg2’, ‘NAME’: ‘AQUIDB’, ‘USER’: ‘AQUIUSUARIO’ , ‘PASSWORD’: ‘HERE PASSWORD’, ‘HOST’: ‘localhost’, ‘PORT’: ‘5432’,}}.

Concluzion: Configuración de PostgreSQL en Django. Hosting CentOS con cPanel – python,noavirtual,emmanuel arreguez,django,postgresql,hosting,centos,cpanel,español,instalar,configurar,argentina,configuracion

source

Exit mobile version