【python】 开始第一个项目
根据这篇文章开始上手
http://www.oschina.net/translate/the-flask-mega-tutorial-part-i-hello-world
再加点东西
如果你的环境是 Linux,OS X or Cygwin,使用以下命令安装 flask 和 扩张包,按顺序一个接一个:
flask/bin/pip install flask flask/bin/pip install flask-login flask/bin/pip install flask-openid flask/bin/pip install flask-mail flask/bin/pip install flask-sqlalchemy flask/bin/pip install sqlalchemy-migrate flask/bin/pip install flask-whooshalchemy flask/bin/pip install flask-wtf flask/bin/pip install flask-babel flask/bin/pip install flup
如果你的是 Windows 环境,那么命令有点不同:
flask\Scripts\pip install flask flask\Scripts\pip install flask-login flask\Scripts\pip install flask-openid flask\Scripts\pip install flask-sqlalchemy flask\Scripts\pip install sqlalchemy-migrate flask\Scripts\pip install flask-whooshalchemy flask\Scripts\pip install flask-wtf flask\Scripts\pip install flask-babel flask\Scripts\pip install flup