2
As I voted for Flask(python), I now see so many examples using Blueprints. What are they? What are they for?
2
As I voted for Flask(python), I now see so many examples using Blueprints. What are they? What are they for?
2
The Blueprints, in my humble opinion, have a very bad name. If they were called "areas" or "sections" or "Subsites" nobody would be scratching their head to try to understand.
In fact Blueprints are very simple and useful mainly to organize your app when it starts to get really big.
You use Blueprints to separate parts (sections) of your site, such as namespaces. With separate parts, you can do things like add before_request
callbacks only in specific Blueprints, error handlers separate templates and/or static files from each Blueprint into different directories, create global or filters for templates, etc.
In short, it is even difficult for you to maintain a great app without using Blueprints and not go crazy.
Browser other questions tagged python flask
You are not signed in. Login or sign up in order to post.
http://stackoverflow.com/questions/24420857/what-are-flask-blueprints-exactly
– Diego