📜  django 连接到 heroku 上的数据库 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:12.789000             🧑  作者: Mango

代码示例1
#Run the following command to check that your db url is set properly:
$ heroku config
#In the settings.py
import dj_database_url

DATABASES['default'] = dj_database_url.config(conn_max_age=600)