/flaskr/__init__.py", line 1, in <module> from .flaskr import app ImportError: No module named flaskr
Related github issues
Issue 2058 https://github.com/pallets/flask/issues/2058
Issue 1902 https://github.com/pallets/flask/issues/1902
Issue 2437 The example flaskr can't easily be run by a beginner in Flask framework https://github.com/pallets/flask/issues/2437
Issue SummaryRan into the above error because some files are put into the wrong directory and need to be moved.
Proposed solutionBetter understanding of the tutorial folder structure. Here's a better diagram than the original.
The indentation of the original tutorial is hard to read!
after a successful $flask run command
you will get this updated folder structure below: