【文件属性】:
文件名称:mywebsite:我的个人和专业网站
文件大小:5.85MB
文件格式:ZIP
更新时间:2021-04-23 15:50:22
JavaScript
Heroku Django入门模板
Django 1.9的绝妙项目入门模板。
特征
静态文件,数据库设置,Gunicorn等的生产就绪型配置。
通过WhiteNoise增强了Django的静态文件服务功能
如何使用
要使用此项目,请按照下列步骤操作:
创建您的工作环境。
安装Django( $ pip install django )
使用此模板创建一个新项目
创建你的项目
使用此模板创建新的Django应用很容易:
$ django-admin.py startproject --template=https://github.com/heroku/heroku-django-template/archive/master.zip --name=Procfile helloworld
您可以用所需的项目名称替换helloworld 。
部署到Heroku
$ git init
【文件预览】:
mywebsite-master
----runtime.txt(14B)
----website()
--------templates()
--------static()
--------wsgi.py(391B)
--------__init__.py(0B)
--------settings.py(4KB)
--------urls.py(889B)
----Procfile(27B)
----.env(17B)
----requirements.txt(88B)
----manage.py(249B)
----.gitignore(38B)
----README.md(1KB)