How to organize a relatively large Flask application?

前端 未结 6 1963
渐次进展
渐次进展 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

    Make sure to read Matt Wright's wonderful post on the subject.

    The post features:

    1. A description of a structure for large flask projects

    2. An example application on Github

    3. A description of best design practices in general when it comes to large web apps, like the MVC pattern, App factories, Services and Data Migration to name a few (most interesting feature IMHO).

提交回复
热议问题