class documentation

class View:

Known subclasses: django.views.generic.RedirectView, django.views.generic.TemplateView

View In Hierarchy

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 ​_allowed​_methods Undocumented
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
def __init__(self, **kwargs):
Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
def _allowed_methods(self):

Undocumented

@classonlymethod
def as_view(cls, **initkwargs):
Main entry point for a request-response process.
def dispatch(self, request, *args, **kwargs):
def http_method_not_allowed(self, request, *args, **kwargs):

Undocumented

def options(self, request, *args, **kwargs):
Handle responding to requests for the OPTIONS HTTP verb.
def setup(self, request, *args, **kwargs):
Initialize attributes shared by all view methods.
http_method_names: list[str] =

Undocumented

args =

Undocumented

head =

Undocumented

kwargs =

Undocumented

request =

Undocumented