【文件属性】:
文件名称:heroku_via_git:测试Heroku
文件大小:14KB
文件格式:ZIP
更新时间:2021-02-10 14:11:58
HTML
Python:入门
一个准系统的Django应用程序,可以轻松地部署到Heroku。
此应用程序支持“ 文-签出。
本地运行
确保Python 3.7。 要推送到Heroku,您需要安装和 。
$ git clone https://github.com/heroku/python-getting-started.git
$ cd python-getting-started
$ python3 -m venv getting-started
$ pip install -r requirements.txt
$ createdb python_getting_started
$ python manage.py migrate
$ python manage.py collectstatic
$ heroku local
您的应用现在应该在上运行。
部署到Heroku
$ her
【文件预览】:
heroku_via_git-main
----.gitignore(56B)
----requirements.txt(39B)
----.env(8B)
----.github()
--------PULL_REQUEST_TEMPLATE.MD(456B)
----runtime.txt(13B)
----README.md(1KB)
----hello()
--------templates()
--------__init__.py(0B)
--------views.py(689B)
--------static()
--------models.py(154B)
--------admin.py(63B)
--------migrations()
--------tests.py(594B)
----gettingstarted()
--------urls.py(463B)
--------__init__.py(0B)
--------static()
--------wsgi.py(405B)
--------settings.py(3KB)
----Procfile(47B)
----manage.py(257B)
----app.json(609B)
----Procfile.windows(45B)