core.validators.RegexValidator.flags
  • References/Python/Django/API/Validators

flags The flags used when compiling the regular expression string regex. If regex is a pre-compiled

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

static.static(prefix, view=django.views.static.serve, **kwargs) Helper function to return a URL pattern for serving files in

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

BoundField.id_for_label Use this property to render the ID of this field. For example, if you are manually constructing a

2025-01-10 15:47:30
forms.SelectDateWidget.years
  • References/Python/Django/API/Forms/Widgets

years An optional list/tuple of years to use in the “year” select box. The default is a list containing the current year and

2025-01-10 15:47:30
apps.AppConfig.get_models()
  • References/Python/Django/API/Applications

AppConfig.get_models() [source] Returns an iterable of

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

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

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

get_lookup(lookup_name) Must return the lookup named lookup_name. For instance, by returning self.output_field

2025-01-10 15:47:30
views.generic.dates.YearMixin.get_year()
  • References/Python/Django/API/Date-based mixins

get_year() [source] Returns the year for which this view will display data, as a string.

2025-01-10 15:47:30
contenttypes.models.ContentTypeManager.get_by_natural_key()
  • References/Python/Django/API/contrib packages/The contenttypes framework

get_by_natural_key(app_label, model) Returns the ContentType instance uniquely identified by the given application

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

get_default_timezone() [source] Returns a

2025-01-10 15:47:30