摘要:
在核心函数slef._get_response中,前部分的路由代码: URLPattern(A) URLResolver(B):在当前urlpattern列表里面不在存在路由分发时 重点在于两类的resolver函数不同 当 for循环中的pattern是类B时,会递归调用该resolve函数直到p 阅读全文
摘要:
1 def _get_response(self, request): 2 """ 3 Resolve and call the view, then apply view, exception, and 4 template_response middleware. This method is 阅读全文
摘要:
class WSGIHandler(base.BaseHandler): request_class = WSGIRequest def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) #在wsgihandler生 阅读全文
摘要:
基本: uwsgi,uWSGI,WSGI三者关系 详情请见:https://www.cnblogs.com/wspblog/p/8575101.html Django中wsgi application 调用最终返回的是response,在上一篇中,我们在handler.run()函数 setup_e 阅读全文
摘要:
阅读全文