File handling
  • References/Python/Django/API/File handling

The File objectThe File class The ContentFile class

2025-01-10 15:47:30
http.QueryDict.iteritems()
  • References/Python/Django/API/Request and response objects

QueryDict.iteritems() Just like the standard dictionary iteritems() method. Like QueryDict.items()

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

coerce A function that takes one argument and returns a coerced value. Examples include the built-in int, float

2025-01-10 15:47:30
gis.gdal.OGRGeometry.within()
  • References/Python/Django/API/GDAL API

within(other) Returns True if this geometry is contained within the other, otherwise returns False

2025-01-10 15:47:30
sitemaps.Sitemap.protocol
  • References/Python/Django/API/contrib packages/The sitemap framework

protocol Optional. This attribute defines the protocol ('http'

2025-01-10 15:47:30
gis.gdal.GDALRaster.srs
  • References/Python/Django/API/GDAL API

srs The spatial reference system of the raster, as a SpatialReference instance. The SRS can be changed by setting

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

to_field_name This optional argument is used to specify the field to use as the value of the choices in the field’s widget.

2025-01-10 15:47:30
db.models.ManyToManyField.related_name
  • References/Python/Django/API/Models/Model field reference

ManyToManyField.related_name Same as ForeignKey.related_name.

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

get_internal_type() [source] Returns a string naming this field for backend specific purposes

2025-01-10 15:47:30
forms.BoundField.as_widget()
  • References/Python/Django/API/Forms/The Forms API

BoundField.as_widget(widget=None, attrs=None, only_initial=False) [source] Renders the field

2025-01-10 15:47:30