Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Jump into the wonderful world of Flask. Learn what the request-response cycle is and how Python's Flask framework fits into it.
Docs
It is always a good idea to bookmark the documentation for reference.
- Flask Docs
- Jinja Docs - will be useful later
- Flask-SQLAlchemy - will be useful later
Popular IDEs
- Visual Studio and their Python language support
- PyCharm (This automatically creates a virtual environment for you when you start a new project)
Local Setup Steps
- Setting up a local env - Mac
Create a folder for your project
Open your folder in your IDE
Open the terminal in your IDE
-
Create a virtual environment
- Mac:
python3 -m venv env
- Windows:
python -m venv env
- Mac:
-
Activate your environment
- Mac:
source ./env/bin/activate
- Windows:
.\env\Scripts\activate
- Mac:
Install Flask
pip install flask
Create requirements file
pip freeze > requirements.txt
GitHub Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up