django-heroku-postgresify:Heroku 上的自动 Django 数据库配置

时间:2021-06-11 11:09:50
【文件属性】:
文件名称:django-heroku-postgresify:Heroku 上的自动 Django 数据库配置
文件大小:74KB
文件格式:ZIP
更新时间:2021-06-11 11:09:50
Python django-heroku-postgresify Heroku 上的自动 Django 数据库配置。 安装 要安装django-heroku-postgresify ,只需运行pip install django-heroku-postgresify即可自动安装最新版本。 用法 修改你的 Django settings.py文件,并设置: from postgresify import postgresify DATABASES = postgresify () 就是这样。 根据您安装的 Heroku PostgreSQL 数据库,您的DATABASES配置将自动设置为使用它们。 例如,假设您在 Heroku 上设置了以下环境变量(您可以通过运行heroku config查看所有环境变量的列表): HEROKU_POSTGRESQL_BLUE_URL HEROKU_POS
【文件预览】:
django-heroku-postgresify-master
----MANIFEST.in(85B)
----.travis.yml(160B)
----assets()
--------postgresify.jpg(70KB)
----requirements.txt(12B)
----UNLICENSE(1KB)
----setup.py(846B)
----.gitignore(22B)
----tests.py(2KB)
----README.md(2KB)
----postgresify.py(1KB)

网友评论