Search
Contents
21.
Hello, Flask!
21.
Hello, Flask!
ΒΆ
21.1. What is Flask
21.1.1. Web Applications
21.1.2. A Web Framework
21.2. Install Flask
21.2.1. Create a Project Directory
21.2.2. Create a Virtual environment
21.2.3. Add Flask
21.2.4. Ready to Go!
21.2.5. Video Summary
21.3. Your First Flask App
21.3.1. Initial Code
21.3.2. Launch the App
21.3.2.1. Change the Python Code
21.3.3. Add Some HTML
21.3.4. Stopping the Application
21.3.5. Video Summary
21.3.6. Check Your Understanding
21.4. Routes
21.4.1. Server IP Address
21.4.2. Paths
21.4.3. Add a Second Page
21.4.4. More Practice
21.4.5. Check Your Understanding
21.5. HTML Templates
21.5.1. What are Templates?
21.5.2. Templates with Flask
21.5.2.1. Add a Template
21.5.2.2. The
render_template
Function
21.5.3. Sending Data to a Template
21.5.3.1. Arguments with
render_template
21.5.4. Expressions in Placeholders
21.5.5. Video Summaries
21.5.6. Check Your Understanding
21.6. Data Collection
21.6.1. Collect Color
21.6.1.1. Update
favorite_form.html
21.6.1.2. Add a New Route
21.6.1.3. Add the
form_results
Template
21.6.2. Try It!
21.6.3. Template Variable Names
21.6.4. Video Summary
21.6.5. Check Your Understanding
21.7. Form Validation with Flask
21.7.1. Validation
21.7.1.1. Why Do Both?
21.7.2. Server-Side Validation
21.7.3. A Better User Experience
21.7.4. Video Summary
21.7.5. Check Your Understanding
21.8. Styling Flask Templates
21.8.1. The
static
Directory
21.8.1.1. Link to the Stylesheet
21.8.2. Pro Tip
21.8.3. Style Another Template
21.8.4. Video Summary
21.9. Exercises: Flask Intro
21.9.1. Part A: Setup
21.9.1.1. Install Flask
21.9.1.2. Add Directories
21.9.2. Part B: Render the Form
21.9.2.1. Add Placeholders
21.9.3. Part C: Collect User Input
21.9.3.1. Check the Method
21.9.4. Part D: Validate the Input
21.9.4.1. Check Input Length
21.9.4.2. Check Characters
21.10. Project: Web Form (Part 2)
21.10.1. Part A: Setup
21.10.1.1. Pull in Your Part 1 Work
21.10.2. Part B: Update the Form Page
21.10.2.1. Collect and Display Message
21.10.3. Part C: Change the Message
21.10.3.1. Encrypt the Message
21.10.3.2. Decrypt Message
21.10.4. Part D: Server-Side Validation
21.10.5. Bonus Mission
←
20.11.
Project: Web Form (Part 1)
21.1.
What is Flask
→