As stated in Flask not finding routes in imported modules I have a very simple Flask application in Python 2.7 that wasn't working when my routes were defined in a different module.
To recap, I have run.py at the top-level, which declares the Flask app variable and then imports the views.home module where the views are defined.
I have discovered that if I switch the import statement in run.py from:
import views.home
to
from views.home import *
everything works.
Why is that? As far as I can tell (https://softwareengineering.stackexchange.com/questions/187403/import-module-vs-from-module-import-function) there isn't any functional different between the two imports that should impact the behaviour of Flask?