📜  使用连接字符串连接 postgresql - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:23.443000             🧑  作者: Mango

代码示例1
# 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')}