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.dates.YearMixin.year_format
  • References/Python/Django/API/Date-based mixins

year_format The

2025-01-10 15:47:30
gis.db.models.GeoQuerySet.centroid()
  • References/Python/Django/API/GeoQuerySet API Reference

GeoQuerySet.centroid(**kwargs) Deprecated since version 1.9: Use

2025-01-10 15:47:30
gis.geos.GEOSGeometry.length
  • References/Python/Django/API/GEOS API

GEOSGeometry.length Returns the length of this geometry (e.g., 0 for a Point, the length of a LineString

2025-01-10 15:47:30
admin.ModelAdmin.readonly_fields
  • References/Python/Django/API/contrib packages/The Django admin site

ModelAdmin.readonly_fields By default the admin shows all fields as editable. Any fields in this option (which should be a list

2025-01-10 15:47:30
views.generic.base.TemplateResponseMixin.template_name
  • References/Python/Django/API/Simple mixins

template_name The full name of a template to use as defined by a string. Not defining a template_name will raise

2025-01-10 15:47:30
views.generic.edit.FormMixin
  • References/Python/Django/API/Editing mixins

class django.views.generic.edit.FormMixin A mixin class that provides facilities for creating and displaying forms.

2025-01-10 15:47:30
views.generic.edit.ProcessFormView.post()
  • References/Python/Django/API/Editing mixins

post(request, *args, **kwargs) Constructs a form, checks the form for validity, and handles it accordingly.

2025-01-10 15:47:30
utils.encoding.smart_bytes()
  • References/Python/Django/API/Django Utils

smart_bytes(s, encoding='utf-8', strings_only=False, errors='strict') [source] Returns a

2025-01-10 15:47:30
urls.resolve()
  • References/Python/Django/API/django.urls utility functions

resolve(path, urlconf=None) [source] path is the URL path you want to resolve

2025-01-10 15:47:30