在Flask中,我们需要一个可以模块化的方法。
Flask自身给我们提供的就是Blueprint方法。
通过Blueprint,可以让我们实现模块化组织程序结构。
官方文档解释:
代码结构:
核心代码:
在__init__里面
manage.py里面