auth.middleware.AuthenticationMiddleware

class AuthenticationMiddleware Adds the user attribute, representing the currently-logged-in user, to every incoming HttpRequest object. See Authentication in Web requests.

core.files.storage._save()

_save(name, content) Called by Storage.save(). The name will already have gone through get_valid_name() and get_available_name(), and the content will be a File object itself. Should return the actual name of name of the file saved (usually the name passed in, but if the storage needs to change the file name return the new name instead).

postgres.operations.TrigramExtension

class TrigramExtension [source] New in Django 1.10. Installs the pg_trgm extension.

core.management.call_command()

django.core.management.call_command(name, *args, **options) To call a management command from code use call_command.

db.models.lookups.RegisterLookupMixin.get_lookup()

get_lookup(lookup_name) Returns the Lookup named lookup_name registered in the class. The default implementation looks recursively on all parent classes and checks if any has a registered lookup named lookup_name, returning the first match.

gis.geoip2.GeoIP2.lat_lon()

GeoIP2.lat_lon(query) Returns a coordinate tuple of (latitude, longitude),

forms.DecimalField.min_value

min_value These control the range of values permitted in the field, and should be given as decimal.Decimal values.

admin.AdminSite.login_template

AdminSite.login_template Path to a custom template that will be used by the admin site login view.

middleware.common.CommonMiddleware.response_redirect_class

CommonMiddleware.response_redirect_class Defaults to HttpResponsePermanentRedirect. Subclass CommonMiddleware and override the attribute to customize the redirects issued by the middleware.

db.models.Func.function

function A class attribute describing the function that will be generated. Specifically, the function will be interpolated as the function placeholder within template. Defaults to None.