views.decorators.csrf.csrf_protect()
  • References/Python/Django/API/Cross Site Request Forgery protection

csrf_protect(view) Decorator that provides the protection of CsrfViewMiddleware to a view.

2025-01-10 15:47:30
core.files.File.write()
  • References/Python/Django/API/File handling/The File object

write(content) Writes the specified content string to the file. Depending on the storage system behind the scenes, this content

2025-01-10 15:47:30
forms.MultiValueField.require_all_fields
  • References/Python/Django/API/Forms/Form fields

require_all_fields Defaults to True, in which case a required validation error will be raised if no

2025-01-10 15:47:30
forms.Field
  • References/Python/Django/API/Forms/Form fields

class Field(**kwargs) [source] When you create a Form class, the most important

2025-01-10 15:47:30
db.models.options.Options.get_fields()
  • References/Python/Django/API/Models/Model _meta API

Options.get_fields(include_parents=True, include_hidden=False) [source] Returns a tuple of

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

GEOSGeometry.covers(other) New in Django 1.10. Returns

2025-01-10 15:47:30
Form and field validation
  • References/Python/Django/API/Forms/Form and field validation

Form validation happens when the data is cleaned. If you want to customize this process, there are various places to make changes, each one serving a different purpose. Three

2025-01-10 15:47:30
forms.DecimalField.decimal_places
  • References/Python/Django/API/Forms/Form fields

decimal_places The maximum number of decimal places permitted.

2025-01-10 15:47:30
db.models.Model.validate_unique()
  • References/Python/Django/API/Models/Model instance reference

Model.validate_unique(exclude=None) [source] This method is similar to clean_fields()

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