zoukankan      html  css  js  c++  java
  • 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关联起来。

    作者:Shane
    出处:http://bluescorpio.cnblogs.com
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    Maven2-profile多环境配置
    Maven-setting.xml详解
    Maven-通过命令操作maven项目
    Maven-eclipse运行maven命令
    Eclipse-导入maven项目
    Maven-搭建maven web项目
    Maven-搭建普通maven项目
    Maven-pom.xml详解
    Maven-生命周期
    Maven-常用命令
  • 原文地址:https://www.cnblogs.com/bluescorpio/p/1639966.html
Copyright © 2011-2022 走看看