sessions.backends.base.SessionBase.__delitem__()

__delitem__(key) Example: del request.session['fav_color']. This raises KeyError if the given key isn’t already in the session.

utils.translation.deactivate_all()

deactivate_all() [source] Makes the active translation object a NullTranslations() instance. This is useful when we want delayed translations to appear as the original string for some reason.

core.files.File.name

name The name of the file including the relative path from MEDIA_ROOT.

http.HttpResponseGone

class HttpResponseGone [source] Acts just like HttpResponse but uses a 410 status code.

admin.models.LogEntry.content_type

LogEntry.content_type The ContentType of the modified object.

messages.storage.fallback.FallbackStorage

class storage.fallback.FallbackStorage This class first uses CookieStorage, and falls back to using SessionStorage for the messages that could not fit in a single cookie. It also requires Django’s contrib.sessions application. This behavior avoids writing to the session whenever possible. It should provide the best performance in the general case. FallbackStorage is the default storage class. If it isn’t suitable to your needs, you can select another storage class by setting MESSAGE_STORAGE

admin.TabularInline

class TabularInline [source]

admin.AdminSite.empty_value_display

AdminSite.empty_value_display New in Django 1.9. The string to use for displaying empty values in the admin site’s change list. Defaults to a dash. The value can also be overridden on a per ModelAdmin basis and on a custom field within a ModelAdmin by setting an empty_value_display attribute on the field. See ModelAdmin.empty_value_display for examples.

Models

A model is the single, definitive source of information about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps to a single database table. The basics: Each model is a Python class that subclasses django.db.models.Model. Each attribute of the model represents a database field. With all of this, Django gives you an automatically-generated database-access API; see Making queries. Quick example This example model defines a Person, wh

core.paginator.Page.start_index()

Page.start_index() [source] Returns the 1-based index of the first object on the page, relative to all of the objects in the paginator’s list. For example, when paginating a list of 5 objects with 2 objects per page, the second page’s start_index() would return 3.