November 2014
Intermediate to advanced
258 pages
5h 15m
English
As we go big, we might want to structure our application in a modular manner. We will do this by restructuring our Hello World application.
__init__.py in our folders, which are to be used as modules.run.py in the topmost folder. As the name implies, this file will be used to run the application.Refer to the following file structure for a better understanding:
flask_app/
- run.py
- my_app/
– __init__.py
- hello/
- __init__.py
- models.py
- views.pyFirst, the flask_app/run.py file will look something like the following ...
Read now
Unlock full access