Answer the question
In order to leave comments, you need to log in
What is the best way to design a Flask application?
Hello,
what is the best way to design an application with 4 sections and an admin panel? how to store statics and templates? at the root of the application or in each blueprint? in general, is it worth cutting into blueprints or making several folders, for example, templates, controllers, models, forms, data, and there already in subfolders into sections, sawing like templates\admin, templates\users.
Actually wishes for answers, you can immediately have an example of a structure for 4 sections, or a link to the material, the answers are "use django there are no such problems" well, you understand)
thanks)
Answer the question
In order to leave comments, you need to log in
I'm Thinking a Blueprint Alternative pythonhosted.org/Flask-Classy
found a good example of organizing an application built on blueprint
here
There is no silver bullet. Flask is very flexible, it allows you to do this, and this, and this.
Which is better depends on a very large number of details, among which there are, for example, "how are we doing / going to do in other projects?".
For example, here is a fairly common way to organize directories https://github.com/sean-/flask-skeleton
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question