There are several ways to organize large applications but in my opinion this is one of the ways that I think the applications are more maintainable. The way in this gist varies from the way proposed in the Flask documentation.
- Centralize the routes into a single file by importing the routing functions
- Create different controller functions inside a controllers.py or even a separate controllers package
- Create a folder for the different views if applicable
- Create a folder for static files if thats applicable