摘要:
添加路由关系的本质 将url和视图封装成一个Rule对象,添加到Flask的url_map中 两种添加路由的方式 # 方式一(FBV) @app.route('/index', endpoint='index_html') # endpoint指定的是别名 def index(): return r 阅读全文
摘要:
WSGI Python Web Server Gateway Interface(python web服务器网关接口),实际上就是一种协议,我们的应用(Django,Flask)实现了WSGI,就可以配合实现了WSGI的服务器(uWSGI,gunicorn)来工作了。 以下是WSGI工作的生命周期两 阅读全文