命令:
# 安装virtualenv $ sudo yum install python-setuptools $ sudo easy_install virtualenv OR sudo pip install virtualenv # 新建虚拟环境 $ mkdir pjt_dir && virtualenv flask # 安装flask $ flask/bin/pip install flask $ flask/bin/pip install flask-sqlalchemy $ flask/bin/pip install flask-wtf $ flask/bin/pip install sqlalchemy-migrate
参考:https://dormousehole.readthedocs.org/en/latest/index.html
Flask模版(支持表单和ORM): https://github.com/miguelgrinberg/microblog/archive/v0.4.zip