PracticalDjangoProjects 笔记四

Django is an MVC framework.The view in Django is the component which retrieves and manipulates data, whereas the template is the component that presents data to the user.

Django是个MVC 框架,或叫做MTC框架。Django中的view是获得并操纵数据的组件,反之,template是用来展现数据给用户的组件。

 

A view in Django terminology is a regular Python function that responds to a page request by generating the corresponding page.

在Django术语中,view就是常规的Python方法,它通过产生相应的页面来回应页面请求。

 It takes user input as a parameter, and returns page output. But before we can see the output of this view, we need to connect it to a URL

 它采用用户输入作为参数,然后返回页面输出,但是在能看到view的输出之前,我们必须把它和一个URL关联起来。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值