Jun 13, 2024
flask run
: Starts the web server.render_template
: Renders HTML templates.app.py
: Main Python file.templates/
: Folder for HTML templates.static/
: Folder for static files like CSS, JavaScript, images.requirements.txt
: Specifies third-party libraries.@app.route
.render_template
.request.args
for GET and request.form
for POST requests to handle form data.extends
and block
tags to create a base layout.Set-Cookie
from server, Cookie
from client.session
variable to store user data./
, /cart
, and more for managing the store.[End of Lecture] 🎉