Use Python Flask to build a login site on Windows 10
Environment
- Python 3
- Windows 10
Steps
- clone the repository
git clone https://github.com/pallets/flask cd flask - checkout the correct version
git tag # shows the tagged versions git checkout latest-tag-found-above cd examples/tutorial - Create a virtualenv and activate it:
py -3 -m venv venv venv\Scripts\activate.bat - Install Flaskr:
pip install -e . - Run
set FLASK_APP=flaskr set FLASK_ENV=development flask init-db #the action will clear all data in db flask run Open http://127.0.0.1:5000 in a browser.