auth.backends.RemoteUserBackend.authenticate()
  • References/Python/Django/API/contrib packages/django.contrib.auth

RemoteUserBackend.authenticate(remote_user) The username passed as remote_user is considered trusted. This method

2025-01-10 15:47:30
db.models.functions.datetime.Trunc
  • References/Python/Django/API/Models/Database Functions

class Trunc(expression, kind, output_field=None, tzinfo=None, **extra) [source] Truncates

2025-01-10 15:47:30
db.migrations.operations.AlterIndexTogether
  • References/Python/Django/API/Migration Operations

class AlterIndexTogether(name, index_together) [source] Changes the model’s set of custom

2025-01-10 15:47:30
Search
  • References/Python/Django/Guides

A common task for web applications is to search some data in the database with user input. In a simple case, this could be filtering a list of objects by a category. A more

2025-01-10 15:47:30
db.backends.base.schema.BaseDatabaseSchemaEditor.alter_db_tablespace()
  • References/Python/Django/API/SchemaEditor

BaseDatabaseSchemaEditor.alter_db_tablespace(model, old_db_tablespace, new_db_tablespace) [source] Moves

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

multiple_chunks(chunk_size=None) [source] Returns True if the file is large

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

Field.db_index If True, a database index will be created for this field.

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

class DurationField(**options) [source] A field for storing periods of time - modeled in

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

GeoIP.lon_lat(query) Returns a coordinate tuple of (longitude, latitude).

2025-01-10 15:47:30
test.SimpleTestCase.settings()
  • References/Python/Django/Guides

SimpleTestCase.settings() [source] For testing purposes it’s often useful to change a setting

2025-01-10 15:47:30