Ray's playground

 

Generic Views(The Definitive Guild to Django)

  Django ships with generic views to do the following:
  • Perform common “simple” tasks: redirect to a different page or render a given template.
  • Display list and detail pages for a single object. The event_list and entry_list views from Chapter 8 are examples of list views. A single event page is an example of what we call a detail view.
  • Present date-based objects in year/month/day archive pages, associated detail, and "latest" pages. The Django weblog’s (http://www.djangoproject.com/weblog/) year, month, and day archives are built with these, as would be a typical newspaper’s archives.

posted on 2010-03-31 22:01  Ray Z  阅读(213)  评论(0)    收藏  举报

导航