How to organize a relatively large Flask application?

前端 未结 6 1973
渐次进展
渐次进展 2020-12-12 09:57

I\'m building my first Flask app and I can\'t figure out a good, clean Pythonic way of organizing my application. I don\'t want to have everything in a single .py file as in

6条回答
  •  余生分开走
    2020-12-12 10:29

    Flask 0.7 implements Blueprints. They are great for using the route decorator without importing the main application object.

提交回复
热议问题