Answers for "connect postgresql using a connection string"

SQL
0

connect postgresql using a connection string

# Parse database configuration from $DATABASE_URL
import dj_database_url
# DATABASES['default'] =  dj_database_url.config()
#updated
DATABASES = {'default': dj_database_url.config(default='postgres://user:pass@localhost/dbname')}
Posted by: Guest on October-21-2021

Code answers related to "connect postgresql using a connection string"

Code answers related to "SQL"

Browse Popular Code Answers by Language