Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
pub
/
flynn-django-template
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a6554ab5
authored
Dec 14, 2018
by
sting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update source url
parent
f77634ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
.gitignore
+2
-0
Pipfile
+2
-2
README.md
+11
-5
No files found.
.gitignore
View file @
a6554ab5
...
@@ -3,3 +3,4 @@ venv
...
@@ -3,3 +3,4 @@ venv
staticfiles
staticfiles
.env
.env
*.sqlite3
*.sqlite3
.vscode
\ No newline at end of file
Pipfile
View file @
a6554ab5
[[source]]
[[source]]
url = "https://pypi.
python.org
/simple"
url = "https://pypi.
tuna.tsinghua.edu.cn
/simple"
verify_ssl = true
verify_ssl = true
name = "
pypi
"
name = "
tsinghua
"
[requires]
[requires]
...
...
README.md
View file @
a6554ab5
...
@@ -11,19 +11,25 @@
...
@@ -11,19 +11,25 @@
按以下步骤操作:
按以下步骤操作:
1.
开发环境准备
,python3, pipenv(
`$pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv`
)
1.
开发环境准备
2.
安装
Django (
`$ pipenv --pypi-mirror https://pypi.tuna.tsinghua.edu.cn/simple install django`
)
2.
安装
工具 pipenv/django(
`$pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv django`
)
3.
使用本模版创建项目
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`
)
(windows如果失败, 将
`django-admin.py`
换为
`django-admin`
)
这里要把
``helloworld``
换为你的项目名称.
这里要把
``appname``
换为你的项目名称.
目录中Pipfile为依赖管理文件
## 部署到flynn
## 部署到flynn
...
@@ -31,7 +37,7 @@
...
@@ -31,7 +37,7 @@
$ git add -A
$ git add -A
$ git commit -m "初始化项目"
$ git commit -m "初始化项目"
$ flynn create
$ flynn create
``appname``
$ git push flynn master
$ git push flynn master
$ heroku run python manage.py migrate
$ heroku run python manage.py migrate
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment