db.backends.base.schema.BaseDatabaseSchemaEditor.alter_field()
  • References/Python/Django/API/SchemaEditor

BaseDatabaseSchemaEditor.alter_field(model, old_field, new_field, strict=False) [source] This

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

django Returns the Django field type (a subclass of GeometryField) to use for storing this OGR type, or None if

2025-01-10 15:47:30
postgres.operations.TrigramExtension
  • References/Python/Django/API/Database migration operations

class TrigramExtension [source] New in Django

2025-01-10 15:47:30
contenttypes.models.ContentType.app_label
  • References/Python/Django/API/contrib packages/The contenttypes framework

app_label The name of the application the model is part of. This is taken from the app_label attribute of the model

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

GEOSGeometry.simplify(tolerance=0.0, preserve_topology=False) Returns a new GEOSGeometry, simplified to the specified

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

class ResolverMatch [source] func The

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

size The size of the file in bytes.

2025-01-10 15:47:30
http.HttpResponse.charset
  • References/Python/Django/API/Request and response objects

HttpResponse.charset A string denoting the charset in which the response will be encoded. If not given at HttpResponse

2025-01-10 15:47:30
Writing custom model fields
  • References/Python/Django/Guides: How-tos

Introduction The model reference documentation explains how to use Django’s standard field classes –

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

patch_response_headers(response, cache_timeout=None) [source] Adds some useful headers to

2025-01-10 15:47:30