需要的文件
- requirements.txt
示例:
Django==1.8.4
dj-database-url==0.3.0
dj-static==0.0.6
django-bootstrap3==6.2.2
gunicorn==19.3.0
static3==0.6.1
psycopg2>=2.6.1
快捷方法:终端输入
pip install dj-database-url
pip install dj-static
pip install django-bootstrap3
pip install gunicorn
pip install static3
pip freeze > requirements.txt
然后输入未安装成功的包
- runtime.txt
查看此处并选择与你的Python版本相近的runtime
格式如python-3.6.9
(Python3.6.9)
- Procfile
这个文件没有扩展名
内容为web: gunicorn _________.wsgi --log-file
画横线的地方是项目名称
- placeholder.txt
内容没有特别之处,内容如下:
This file ensures that learning_log/static/ will be added to the project.
Dja