视图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
原文:http://www.cnblogs.com/jons/p/7113175.html