Java知识分享网 - 轻松学习从此开始!    

Java知识分享网

Java1234官方群25:java1234官方群17
Java1234官方群25:838462530
        
SpringBoot+SpringSecurity+Vue+ElementPlus权限系统实战课程 震撼发布        

最新Java全栈就业实战课程(免费)

springcloud分布式电商秒杀实战课程

IDEA永久激活

66套java实战课程无套路领取

锋哥开始收Java学员啦!

Python学习路线图

锋哥开始收Java学员啦!
当前位置: 主页 > Java文档 > Java基础相关 >

flask-docs PDF 下载


分享到:
时间:2020-09-15 10:51来源:http://www.java1234.com 作者:小锋  侵权举报
flask-docs PDF 下载
失效链接处理
flask-docs PDF 下载


本站整理下载:
 
相关截图:
 
主要内容:

Read this before you get started with Flask. This hopefully answers some questions
about the purpose and goals of the project, and when you should or should not be
using it.
1.1 What does “micro” mean?
“Micro” does not mean that your whole web application has to fit into a single Python
file, although it certainly can. Nor does it mean that Flask is lacking in functionality.
The “micro” in microframework means Flask aims to keep the core simple but exten￾sible. Flask won’t make many decisions for you, such as what database to use. Those
decisions that it does make, such as what templating engine to use, are easy to change.
Everything else is up to you, so that Flask can be everything you need and nothing
you don’t.
By default, Flask does not include a database abstraction layer, form validation or any￾thing else where different libraries already exist that can handle that. Instead, Flask
supports extensions to add such functionality to your application as if it was imple￾mented in Flask itself. Numerous extensions provide database integration, form val￾idation, upload handling, various open authentication technologies, and more. Flask
may be “micro”, but it’s ready for production use on a variety of needs.
1.2 Configuration and Conventions
Flask has many configuration values, with sensible defaults, and a few conventions
when getting started. By convention templates and static files are stored in subdirec￾tories within the application’s Python source tree, with the names templates and static
respectively. While this can be changed you usually don’t have to, especially when
getting started.
3
1.3 Growing with Flask
Once you have Flask up and running, you’ll find a variety of extensions available in
the community to integrate your project for production. The Flask core team reviews
extensions and ensures approved extensions do not break with future releases.
As your codebase grows, you are free to make the design decisions appropriate for
your project. Flask will continue to provide a very simple glue layer to the best that
Python has to offer. You can implement advanced patterns in SQLAlchemy or another database tool, introduce non-relational data persistence as appropriate, and take
advantage of framework-agnostic tools built for WSGI, the Python web interface.
Flask includes many hooks to customize its behavior. Should you need more customization, the Flask class is built for subclassing. If you are interested in that, check
out the Becoming Big chapter. If you are curious about the Flask design principles, head
over to the section about Design Decisions in Flask.
Continue to Installation, the Quickstart, or the Foreword for Experienced Programmers

 

------分隔线----------------------------

锋哥公众号


锋哥微信


关注公众号
【Java资料站】
回复 666
获取 
66套java
从菜鸡到大神
项目实战课程

锋哥推荐