utils.translation.ngettext_lazy()
  • References/Python/Django/API/Django Utils

ngettext_lazy(singular, plural, number) [source]

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

get_script_prefix() [source] Normally, you should always use reverse() to define

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

QueryDict.values() Just like the standard dictionary values() method, except this uses the same last-value logic

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

InlineModelAdmin.can_delete Specifies whether or not inline objects can be deleted in the inline. Defaults to True

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

to_locale(language) [source] Turns a language name (en-us) into a locale name (en_US).

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

class TypedMultipleChoiceField(**kwargs) [source] Just like a MultipleChoiceField

2025-01-10 15:47:30
middleware.cache.FetchFromCacheMiddleware
  • References/Python/Django/API/Middleware

class FetchFromCacheMiddleware [source] Enable the site-wide cache. If these are enabled

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

as_string() Returns the value of the field as a string:

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

pretty_wkt Returns the ‘pretty’ representation of the WKT.

2025-01-10 15:47:30
gis.db.models.BaseSpatialField.spatial_index
  • References/Python/Django/API/GeoDjango Model API

BaseSpatialField.spatial_index Defaults to True. Creates a spatial index for the given geometry field.

2025-01-10 15:47:30