首页 > 代码库 > django视图

django视图

视图view(单页面)匹配模型model。

To get from a URL to a view,Djiano uses what known as ‘URLConfs‘.A URLconf maps URL patterns(described as regular expressions) to views.

First:

定义视图,/appname/views.py

second:

定义URLConf,/projectname/urls.py

 

django视图