Show Menu
Cheatography

Start project

System Variables: WORKON­_HOME
location for virtua­lenvs
pip install virtua­len­vwr­app­er_win
install virtua­len­vwr­apper utility
mkproject <pr­oje­ctn­ame>
create virtua­lenv, project folder
workon <pr­oje­ctn­ame>
activate virtua­lenv, change to project folder
<vi­rtu­alenv folder­>\S­cri­pts­\de­act­ivate
exit virtualenv
 

Install helper packages

activate env, install below packages using: pip install <pa­cka­ge>
Flask
base package
Flask_­SQL­Alchemy
SQLite connectors
Flask_­Script
manage package, DB
Flask_­Login
login functions
Flask_WTF
WT Forms extension
Sphinx
docume­ntation helper
pytest
test suite
save requir­ements into text file using: pip freeze > requir­eme­nts.txt
 

__init__

 
from flask import Flask
           
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Python Cheat Sheet
          Django Basics Cheat Sheet

          More Cheat Sheets by shribee

          Git Cheat Sheet