db.models.Field.choices
  • References/Python/Django/API/Models/Model field reference

Field.choices An iterable (e.g., a list or tuple) consisting itself of iterables of exactly two items (e.g. [(A, B), (A

2025-01-10 15:47:30
admin.AdminSite.disable_action()
  • References/Python/Django/API/Admin actions

AdminSite.disable_action(name) [source] If you need to disable a site-wide

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

LogEntry.content_type The

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

smart_str(s, encoding='utf-8', strings_only=False, errors='strict') Alias of smart_bytes() on Python 2 and

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

trim New in Django 1.10. This property

2025-01-10 15:47:30
template.Engine.select_template()
  • References/Python/Django/API/Templates/The Django template language: for Python programmers

Engine.select_template(self, template_name_list) [source] Like get_template()

2025-01-10 15:47:30
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
gis.geoip.GeoIP
  • References/Python/Django/API/Geolocation with GeoIP

class GeoIP(path=None, cache=0, country=None, city=None) The GeoIP object does not require any parameters to use

2025-01-10 15:47:30
views.generic.dates.DateMixin.allow_future
  • References/Python/Django/API/Date-based mixins

allow_future A boolean specifying whether to include “future” objects on this page, where “future” means objects in which the

2025-01-10 15:47:30
gis.geoip2.GeoIP2.country()
  • References/Python/Django/API/Geolocation with GeoIP2

GeoIP2.country(query) Returns a dictionary with the country code and country for the given query.

2025-01-10 15:47:30