DX
Size: a a a
DX
V
DX
DX
DX
DX
DX
1. the Flask application object creation has to be in the __init__.py file. That way each module can import it safely and the __name__ variable will resolve to the correct package.
2. all the view functions (the ones with a route() decorator on top) have to be imported in the __init__.py file. Not the object itself, but the module it is in. Import the view module after the application object is created.
DX
AT
DX
V
T
AT
V
AT
AT
AT
V
T