web笔记

mvc是一种开发模型,实现了低耦合和高内聚    model view controller
wsgi 是由python开发的  web server gateway interface
web框架
          django
           tornodo   是通过协程
           flask    轻量型的框架
           web2  web.py
 
MVC 流程    模型-视图-控制器
    request --> controller.function  ---> model --> view  --> response
              
 
 
MTV流程
          request -->  view.function ---> model  -->  template --> response
        
django可识别的视图需要满足的条件:
          1.第一个参数的类型:HttpResquest
          2.返回HttpResponse实例
 
 ----------------------------------------------------------------------更新与2015/12/06 -------------------------------------------------------------------------
 
posted @ 2015-12-06 17:52  xiaoli2018  阅读(218)  评论(0编辑  收藏  举报