2015-10-06 55 views
2

在Flask中,我可以調用blueprint函數來構建我的應用程序。如何構建瓶子大型應用程序

我要做到以下幾點:

app/ 
    __init__.py 
    admin/ 
     __init__.py 
     views.py 
     static/ 
     templates/ 
    home/ 
     __init__.py 
     views.py 
     static/ 
     templates/ 
    control_panel/ 
     __init__.py 
     views.py 
     static/ 
     templates/ 
    models.py 

在瓶,我該怎麼辦?

回答

0

在每個路徑中使用app=bottle.defaultapp()。在你的主應用程序中導入所有路由功能。