Week 7 • Monday

Block 61: Flask: Getting Started

Build and run your first Flask web application.

Concepts

Code Examples

See exercise below.

Exercise

Create a Flask app with routes: /, /hello/<name>, /about. Test in browser. Return a JSON response from a /data route.

Homework

What does debug=True do? Why should it NEVER be used in production?