Class View
Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking.
Declaration
class View
source linkDocumentation
Methods
▷ def __init__(self, **kwargs) Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
▷ def as_view(cls, **initkwargs) @classonlymethod Main entry point for a request-response process.
@classonlymethod
def as_view(cls, **initkwargs)
▶ def dispatch(self, request, *args, **kwargs) Overrides
This method is overriden in:
▶ def options(self, request, *args, **kwargs) Handle responding to requests for the OPTIONS HTTP verb.
Overrides
This method is overriden in:
▷ def setup(self, request, *args, **kwargs) Initialize attributes shared by all view methods.
Subclasses
Reexports