Django View Layer

Generic views

Django’s generic views take certain common idioms and patterns found in view development and abstract them so that you can quickly write common views of data without having to write too much code.

Using Generic Views

All of these views are used by creating configuration dictionaries in your URLconf files and passing those dictionaries as the third member of the URLconf tuple for a given pattern.

Functions

get_list_or_404()

Shortcut function to be used in view functions for performing a filter() lookup and raising a Http404 exception if a DoesNotExist exception was raised during the filter() call.

page_revision: 4, last_edited: 1259074403|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.