Closed catapam closed 1 month ago
Database used is external connection with a Code Institute Postgress setup. Commit
Error encountered during initial migrate:
django.db.utils.OperationalError: ERROR: Endpoint ID is not specified. Either please upgrade the postgres client library (libpq) for SNI support or pass the endpoint ID (first part of the domain name) as a parameter: '?options=endpoint%3D<endpoint-id>'. See more at https://neon.tech/sni
ERROR: connection is insecure (try using sslmode=require)
postgress://user:password@endpoint_id.hostname/dbname
the new link:
postgress://user:password@endpoint_id.hostname/dbname?options=endpoint%3Dendpoint_id&sslmode=require
Configure the Django
settings.py
file to establish a connection with the selected SQL database for the project.Acceptance Criteria:
settings.py
are correctly configured.Steps:
settings.py
file and configure theDATABASES
setting.pip
.python manage.py migrate
to ensure Django can connect to the database.Linked Issues:
105
106
Next task:
120
Previous task:
118