【文件属性】:
文件名称:generic-django-project-heroku:使Django在Heroku上运行的通用项目
文件大小:111KB
文件格式:ZIP
更新时间:2021-05-18 20:05:24
Python
通用django-project-heroku
新django应用程序的通用项目目录结构。
有关更多信息,请阅读我的博客文章:
安装
首先,获取cookiecutter
$ pip install cookiecutter
然后执行以下命令:
$ cookiecutter https://github.com/josephmisiti/generic-django-project-heroku.git
heroku buildpacks:设置git://github.com/heroku/heroku-buildpack-python.git
设置数据库
登录到Heroku并转到此处:
选择Dev Plan (免费),您应该得到一个postgres数据库
不用担心其他事情, databases_url将负责其余的工作
如果您有任何疑问或需要帮助的内容,请发送拉取请求或通过
【文件预览】:
generic-django-project-heroku-master
----cookiecutter.json(364B)
----.gitignore(46B)
----README.md(5KB)
----{{cookiecutter.repo_name}}()
--------bin()
--------vendor()
--------templates()
--------Procfile(70B)
--------static()
--------requirements.txt(36B)
--------requirements()
--------manage.py(269B)
--------apps()
--------{{cookiecutter.repo_name}}()