Flask Mega Tutorial Video 1
- I created a folder called flask/miguel and changed to it.
- Make sure python is installed
- Install flask - he created a folder called microblog and put a venv called venv in it.
- Then a subdirectory called app and an
__init__.pyfile. - Not sure I understand the explanation but he says this kind of base ensures flask is correctly set up.
- And then he creates the program routes.py in the app subdirectory
- And then in microblog, he creates microblog.py
- Now to tell Flask what to run
- finally run the app
- To avoid having to run the export command everytime you want to do this:
pip install python-dotenv(making sure the venv is active) then at the top level directory of the project create.flaskenvFLASK_APP=microblog.py