Answers for "psql get connection string"

SQL
7

postgres connection string

postgres://YourUserName:YourPassword@YourHostname:5432/YourDatabaseName
Posted by: Guest on January-31-2021
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 "psql get connection string"

Code answers related to "SQL"

Browse Popular Code Answers by Language