views.generic.base.View.http_method_not_allowed()
  • References/Python/Django/API/Built-in class-based views API/Base views

http_method_not_allowed(request, *args, **kwargs) If the view was called with a HTTP method it doesn’t support, this method

2025-01-10 15:47:30
views.generic.base.TemplateView
  • References/Python/Django/API/Built-in class-based views API/Base views

class django.views.generic.base.TemplateView Renders a given template, with the context containing parameters captured in the

2025-01-10 15:47:30
views.generic.base.View.dispatch()
  • References/Python/Django/API/Built-in class-based views API/Base views

dispatch(request, *args, **kwargs) The view part of the view – the method that accepts a request argument

2025-01-10 15:47:30
views.generic.base.View.http_method_names
  • References/Python/Django/API/Built-in class-based views API/Base views

http_method_names The list of HTTP method names that this view will accept. Default:

2025-01-10 15:47:30
views.generic.base.RedirectView.query_string
  • References/Python/Django/API/Built-in class-based views API/Base views

query_string Whether to pass along the GET query string to the new location. If True, then the query string is

2025-01-10 15:47:30
views.generic.base.RedirectView.pattern_name
  • References/Python/Django/API/Built-in class-based views API/Base views

pattern_name The name of the URL pattern to redirect to. Reversing will be done using the same args and kwargs as are passed

2025-01-10 15:47:30
views.generic.base.RedirectView
  • References/Python/Django/API/Built-in class-based views API/Base views

class django.views.generic.base.RedirectView Redirects to a given URL. The given URL may contain

2025-01-10 15:47:30
views.generic.base.RedirectView.permanent
  • References/Python/Django/API/Built-in class-based views API/Base views

permanent Whether the redirect should be permanent. The only difference here is the HTTP status code returned. If True

2025-01-10 15:47:30
views.generic.base.RedirectView.url
  • References/Python/Django/API/Built-in class-based views API/Base views

url The URL to redirect to, as a string. Or None to raise a 410 (Gone) HTTP error.

2025-01-10 15:47:30
views.generic.base.View
  • References/Python/Django/API/Built-in class-based views API/Base views

class django.views.generic.base.View The master class-based base view. All other class-based views inherit from this base class

2025-01-10 15:47:30