9,378 views 1,579 downloads 1 Mar 2020 History

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.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.