Код: Выделить всё
root/
- modules/
__init__.py
- common/
__init__.py
- citrixlb/
__init__.py # blueprint code
citrixlb.py # module class
- aws/
__init__.py # blueprint code
aws.py # module class
У меня это есть в корне /__init__.py:
Код: Выделить всё
# import our modules
from modules.citrixlb import *
from modules.aws import *
app.register_blueprint(aws)
app.register_blueprint(citrix)
Пример:
Раскрывающийся список: AWS
Код: Выделить всё
/awsКод: Выделить всё
/aws/ec2Код: Выделить всё
/aws/subnets
Подробнее здесь: https://stackoverflow.com/questions/300 ... ist-routes