class documentation

Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking.

Method __init__ Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
Method as_view Main entry point for a request-response process.
Method dispatch Undocumented
Method http_method_not_allowed Undocumented
Method options Handle responding to requests for the OPTIONS HTTP verb.
Method setup Initialize attributes shared by all view methods.
Class Variable http_method_names Undocumented
Instance Variable args Undocumented
Instance Variable head Undocumented
Instance Variable kwargs Undocumented
Instance Variable request Undocumented
Property view_is_async Undocumented
Method _allowed_methods Undocumented
def __init__(self, **kwargs): (source)

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

@classonlymethod
def as_view(cls, **initkwargs): (source)

Main entry point for a request-response process.

def dispatch(self, request, *args, **kwargs): (source)
def http_method_not_allowed(self, request, *args, **kwargs): (source)

Undocumented

def options(self, request, *args, **kwargs): (source)

Handle responding to requests for the OPTIONS HTTP verb.

def setup(self, request, *args, **kwargs): (source)

Initialize attributes shared by all view methods.

http_method_names: list[str] = (source)

Undocumented

Undocumented

Undocumented

Undocumented

@classproperty
view_is_async = (source)

Undocumented

def _allowed_methods(self): (source)

Undocumented