flask蓝图的使用
首先,我对蓝图的理解相对通俗,就是觉得蓝图对于视图方法模块化、大项目协同开发过程中的一个很好的工具.
1.下图是我们通常情况下使用的项目组织结构
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJsAAADvCAYAAADl0qZbAAAYIWlDQ1BJQ0MgUHJvZmlsZQAAWIWVeQdUFE2zds/OBliWJeeck+QMknPOGYEl55xRiSJBRRBQkggqCCoYSCImBBFFBBUwIBIMJBUUUATkDkHf73/vf889t8+Z4dnqqpqnu6q7pxgA2JhJ4eHBKGoAQkKjI60NtLkdnZy5cRMAAmhAD8gBF8krKlzL0tIU/I9tZRjRRtpz8S1f/7Pe/7fRePtEeQEAWSLY0zvKKwTBTQCgWb3CI6MBwAwgcr646PAtvIRg+kiEIABYsi3st4PZt7DnDpba1rG11kGwLgBkBBIp0g8A4pZ/7lgvP8QPMRzpow31DghFVDMQrO7lT/IGgLUL0dkTEhK2hRcQLOz5H378/h+fnn99kkh+f/HOWLYbmW5AVHgwKeH/OB3/ewsJjvnzDF7kIvhHGlpvjRmZtwtBYSZbmIDgjlBPcwsE0yL4YYD3tv4Wfu0fY2i3qz/vFaWDzBlgBAAFvEm6JghG5hLFGBNkp7WLZUiR27aIPso8INrIdhd7RoZZ7/pHxfpE6dn8wf4+Rqa7PrNCg83/4NO+AfpGCEYyDdWU6G/rsMMT1RUbYG+OYCKCB6KCbEx29ccS/XXM/+hExlhvceZH8JJvpL71jg7MHBL1Z1ywhBdpmwMzgjWj/W0Nd2xhR58oR9M/3Lx9dPV2OMDePqF2u5xhJLu0rXdtM8ODLXf14dM+wQbWO/MMX4mKtflj+ywaSbCdeYAnA0nGljv84ZXwaEvbHW5oNDAFOkAXcIMY5PIEYSAQBPTPt84jv3Z69AEJRAI/4APEdyV/LBy2e0KRuw1IBJ8R5AOi/tppb/f6gFhEvvFXunMXB77bvbHbFkHgI4JD0KxodbQq2hS5ayKXDFoJrfzHjpvqz1OxelhdrCFWHyvyl4cXwjoYuSJBw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zNicgoXTgjFUxSJVGqbeHoUVqyajA8HKGHT78PVbxuW8ef0MNGXXjWVrcHAjkSCjQLkFynBB1mOnUWdg4WzeHMx6Wi4OqsaA/ylei/1UbwRiGJWjh/WyPqxOCg4u8nu+AuU2KtElGY95Nqdg4fqpJ8d01BualC4IlyZM9Ju5NTi4kNSQv9+h3AY9uOLoMc/mDCzcOHExaLcReq3D5dp8cnVqIzmXEetjSmFaMvJj1byXDOUO4eg3IgfIzcLH/0hGPj2TsGrIANO+SslEAx4zNmdg4SYzMBbuoIF25gUnTyH1RCCq/18+0rOpMdVIIJnh0bXsomMBNtwejvn6U3MQOcYC1UaMjAnFE91DcPCLz3ijGvAoxysqoR8PT88vAKblcQGcJQdRGuCx0ygPC2+N+pv1aBNwjWLg3kTzgOb8f/PmaEZ/DfUNuHP7DgIe6CRjqaLQdyK9yyBXhdEjRyP9Er1IY24y9A9Kifbn4eAhMMDBOSh3DXvSSpASb2BD0kj07TsUaXMKkLPuLxiuf8iFPcI3ZAk9Bkgp5+n+IvtFAR8lC4/g2VwJCzdfQ91lLX6lK4EoSQSveQ+psgLlltKMo/Ue82zuiu4dFh7pAkPj1ekvUbodNQ5X9/OIZzOfhHfCwhUot/k6OVv2CmNzdhJKf9/QwP8HPu02iSktLI0AAAAASUVORK5CYII=" alt="" />
看一下视图方法:
#views.py
1 from app import app @app.route('/user/index')
def index():
return 'user_index' @app.route('/user/show')
def show():
return 'user_show' @app.route('/user/add')
def add():
return 'user_add' @app.route('/admin/index')
def adminindex():
return 'admin_index' @app.route('/admin/show')
def adminshow():
return 'admin_show' @app.route('/admin/add')
def adminadd():
return 'admin_add' #从视图方法中,我们看到有6个视图,分别对应admin,user两个不同用户的3个功能index,add,show.
这样写显然没问题,但是明显与python提倡的模块化,优雅的代码特点相违背,即不是很python的python代码. 让我们在这里假想两个问题:
1.如果admin和user不止只有3个功能呢,比如好几百个,导致views的代码量已经达到了上万行?
2.如果我们有多个同事分工开发admin,user和其它可能的模块呢,都同时往一个views里写代码吗,在做版本控制时,提交过程中频繁出现提交冲突了怎么办?
3.加入我们要抛弃admin或者user功能块时怎么办,要一一手动删除所有admin或是user相关的代码吗,这样当然可以,但是会不会太low呢? 当然根据Pythonic特点,我们肯定希望尽可能的把代码尽量的模块化,让我们的代码看起来更加的优雅和顺畅,这个时候flask.Blueprint(蓝图)就派上用场了
什么是蓝图?
一个蓝图定义了可用于单个应用的视图,模板,静态文件等等的集合。
我什么时候会用到蓝图?
蓝图的杀手锏是将你的应用组织成不同的组件,比如把这里的admin,user相关的视图方法分为两个组件,一个是admin组件,一个是user组件.这时我们可以
创建两个蓝图实现这两个独立的组件.
2.我们如何使用蓝本将上述的视图方法看上去更加pythonic呢?
由于上面的例子中只有两个组件(模块)admin,user,我们可以创建名为admin.py和user.py的两个文件,分别在里面创建两个蓝图的实例对象admin,user.
直接上代码:
#admin.py
#admin.py
from flask import Blueprint,render_template, request admin = Blueprint('admin',__name__) @admin.route('/index')
def index():
return render_template('admin/index.html') @admin.route('/add')
def add():
return 'admin_add' @admin.route('/show')
def show():
return 'admin_show' #要想创建一个蓝图对象,你需要import flask.Blueprint()
类并用参数name
和import_name
初始化。import_name通常用__name__
,一个表示当前模块的特殊的Python变量,作为import_name
的取值。
#user.py
from flask import Blueprint, render_template, redirect user = Blueprint('user',__name__) @user.route('/index')
def index():
return render_template('user/index.html') @user.route('/add')
def add():
return 'user_add' @user.route('/show')
def show():
return 'user_show'
好了,视图函数已经分开了,我们如何使用它们的呢?再来看一下我们的views.py变成了什么样吧?
#views.py
from app import app
from .admin import admin
from .user import user
#这里分别给app注册了两个蓝图admin,user
#参数url_prefix='/xxx'的意思是设置request.url中的url前缀,
#即当request.url是以/admin或者/user的情况下才会通过注册的蓝图的视图方法处理请求并返回
app.register_blueprint(admin,url_prefix='/admin')
app.register_blueprint(user, url_prefix='/user')
#现在我们的views是否已经变得很简单了呢?顺便回答第三个问题,如果想弃用某一个组件(模块)我们只需要相对应的注释掉给app注册蓝图的行即可.
#细心的伙伴还可以发现,在views.py中在使用默认endpoint的前提下,我们是没有办法使用同一个视图方法名的(当然我们也不建议在同一个文件中有两个视图方法名相同,
#尽管指向他们的request.url不同),但是使用了蓝图之后我们就可以在不同模块中使用相同的方法名了,例如add,show..
3.到此我们就可以通过浏览器测试我们的程序
4.附上使用蓝图后的项目组织结构
当然如果项目不大的话就没有什么必要使用蓝图了,甚至我们可以把除了所有css,js,html的代码都写到一个文件中去,这里我们不在举例,说明.
flask蓝图的使用的更多相关文章
- Flask 蓝图(Blueprint)
蓝图使用起来就像应用当中的子应用一样,可以有自己的模板,静态目录,有自己的视图函数和URL规则,蓝图之间互相不影响.但是它们又属于应用中,可以共享应用的配置.对于大型应用来说,我们可以通过添加蓝图来扩 ...
- flask 蓝图
转自:http://spacewander.github.io/explore-flask-zh/7-blueprints.html 蓝图 什么是蓝图? 一个蓝图定义了可用于单个应用的视图,模板,静态 ...
- Flask蓝图目录、Flask-SQLAlchemy、Flask-Script、Flask-Migrate
一.Flask蓝图目录 我们之前写的Flask项目都是自己组织的目录结构,其实Flask官方有其推荐的目录结构,以下就是一个符合官方推荐的Flask小型应用的项目结构目录示例,如下: 如图,这就是我们 ...
- Flask蓝图的增删改查
怎样用flask蓝图来实现增删改查呢?请看下面的内容 这是我们的目录结构 从图中可以看出每一个功能都有一个各自的文件夹 首先我们要自己先来创建一个数据,在Flask_data.py中写入如下内容: S ...
- Flask蓝图基本使用
Flask蓝图基本使用 Flask通过使用蓝图将视图函数模块化,使应用显得更加规整 比如我们的应用的视图函数包括用户相关和文章相关,那么我们可以通过建立两个py文件分别存储两类视图函数 user.py ...
- Flask蓝图遇到的问题
欢迎加入python学习交流群 667279387 最近在使用flask开发一个业余学习项目,由于之前都是"小打小闹",整个程序都是放在一个文件夹里面的,也没有注意这个问题.这次项 ...
- Flask蓝图Blueprint和特殊装饰器
Flask 中的 蓝图 Blueprint 不能被run的flask实例:相当于django中的app01 应用 蓝图作用:功能隔离 路由隔离 Blueprint就是 一个不能run的flask 蓝图 ...
- Flask 蓝图进行路由分发.md
Flask 蓝图进行路由分发 Flask虽然说是一个轻型web框架,但也总不能用一个py文件写完全部view吧,所以我们要把路由分到不同的py文件中.这就需要用到蓝图了. 一 创建一个py文件 用于处 ...
- Flask 蓝图(Blueprint)使用方式解析
Flask蓝图提供了模块化管理程序路由的功能,使程序结构清晰.简单易懂.下面分析蓝图的使用方法 假如说我们要为某所学校的每个人建立一份档案,一个很自然的优化方式就是这些档案如果能分类管理,就是说假如分 ...
- 测试平台系列(4) 使用Flask蓝图(blueprint)
使用Flask蓝图(blueprint) 回顾 先来看一下上一篇的作业吧,使用「logbook」的时候,遇到了时区不对的情况.那么我们怎么去解决这个问题呢? 实际上logbook默认采用的是世界标准时 ...
随机推荐
- Python+Selenium WebDriver API:浏览器及元素的常用函数及变量整理总结
由于网页自动化要操作浏览器以及浏览器页面元素,这里笔者就将浏览器及页面元素常用的函数及变量整理总结一下,以供读者在编写网页自动化测试时查阅. from selenium import webdrive ...
- 读书笔记——thinking in java
1.一切都是对象,用引用操作对象 1.1程序存储的地方 引用存放在堆栈区(通用的RAM),所有对象存储在堆(一种通用的内存池).堆和堆栈的区别:堆栈中的这些引用,java系统是要知道确切的生命周期,堆 ...
- DedeCMS新建模型字段【附件样式】修改方法
当我们在系统模型中添加了一个自定义附件类型字段的时候,例如我在后台添加一个名为"fujian"的附件类型的字段,字段的实际内容为:'/uploads/soft/2245/1-255 ...
- Spring ---annotation (重点)--Resource, Component 重要!!!
beans.xml: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="ht ...
- iOS之UITableView的上拉刷新
#import "ViewController.h" #import "UITableView+PullRefresh.h" @interface ViewCo ...
- Delphi XE7 Update1 下载破解、带源码和帮助安装序列号
源:http://blog.csdn.net/tht2009/article/details/39157877 Delphi安装与破解 1.XE7 XE7Update1:http://altd.emb ...
- openstack controller ha测试环境搭建记录(四)——配置mysql数据库集群
内容正式开始前,我已经在集群中添加了新的节点controller1(IP地址为10.0.0.14). 在所有节点上安装软件:# yum install -y mariadb-galera-server ...
- CDOJ 1272 Final Pan's prime numbers
有些问题,不做实践与猜测,可能一辈子也想不出答案,例如这题. #include<stdio.h> #include<math.h> long long x; int main( ...
- LVS+Keppalived实现高可用负载均衡
三.LVS Keppalived的安装 3.1.环境描述 LVS server1 (Master):10.0.0.202 虚拟IP为:10.0.0.210 LVS server2 ( Slave ) ...
- phpcms v9 在当前栏目下获取父栏目与当前栏目的名称与连接
<a href="#" target="_blank">首页</a> > <a href="{$CATEGORYS ...