Commit a6554ab5 by sting

update source url

parent f77634ee
......@@ -3,3 +3,4 @@ venv
staticfiles
.env
*.sqlite3
.vscode
\ No newline at end of file
[[source]]
url = "https://pypi.python.org/simple"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
verify_ssl = true
name = "pypi"
name = "tsinghua"
[requires]
......
......@@ -11,19 +11,25 @@
按以下步骤操作:
1. 开发环境准备,python3, pipenv(`$pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv`
2. 安装 Django (`$ pipenv --pypi-mirror https://pypi.tuna.tsinghua.edu.cn/simple install django`)
1. 开发环境准备
2. 安装工具 pipenv/django(`$pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv django`
3. 使用本模版创建项目
## 创建项目
用模版轻松创建项目::
$ django-admin.py startproject --template=https://git.xxynet.com/pub/flynn-django-template/repository/archive.zip?ref=master --name=Procfile ``helloworld``
$ django-admin.py startproject --template=https://git.xxynet.com/pub/flynn-django-template/repository/archive.zip\?ref=master --name=Procfile appname
$ cd appname && pipenv install
(windows如果失败, 将 `django-admin.py` 换为 `django-admin`)
这里要把 ``helloworld`` 换为你的项目名称.
这里要把 ``appname`` 换为你的项目名称.
目录中Pipfile为依赖管理文件
## 部署到flynn
......@@ -31,7 +37,7 @@
$ git add -A
$ git commit -m "初始化项目"
$ flynn create
$ flynn create ``appname``
$ git push flynn master
$ heroku run python manage.py migrate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment