Skip to content

yinzhipeng123/Python3_My_Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python3_My_Flask

运行环境

目录下执行

$ sudo apt-get install python-virtualenv  
$ virtualenv -p /usr/bin/python3 venv  
$ . venv/bin/activate 
#执行完会进入虚拟环境,退出虚拟环境输入deactivate  

在虚拟环境执行,安装依赖

$pip3 install -r requirements.txt

生成和初始化数据库

$ cd flaskr
$ python3 initdb.py  #生成数据库 

运行WEB

$ flask run

About

Python3下的Flask项目

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published