prof-rossetti / intro-to-python

An Introduction to Programming in Python
Other
97 stars 244 forks source link

Default Flask Command Not Working #77

Closed s2t2 closed 3 years ago

s2t2 commented 3 years ago

Some students have reported that the default Flask run command doesn't work (could not find app hello.py).

However once we re-organized the app into the "web_app" directory init file and used an app factory function, they reported it started working. In hindsight I think maybe flask was looking for an init file in the root directory, and that's why the hello.py version doesn't work.

Let's update Checkpoint 1 to reflect this student experience, and de-emphasise the need to put all the routes in before we move to the app factory pattern, to make it easier for students to follow along between Checkpoints 1 and 2.

https://github.com/prof-rossetti/intro-to-python/blob/master/exercises/web-app/checkpoints/1-routing.md

s2t2 commented 3 years ago

Closed earlier this summer.