messages.middleware.MessageMiddleware

class MessageMiddleware [source] Enables cookie- and session-based message support. See the messages documentation.

admin.models.LogEntry

class models.LogEntry The LogEntry class tracks additions, changes, and deletions of objects done through the admin interface.

utils.timezone.get_default_timezone_name()

get_default_timezone_name() [source] Returns the name of the default time zone.

admin.AdminSite.index_title

AdminSite.index_title The text to put at the top of the admin index page (a string). By default, this is “Site administration”.

gis.db.models.functions.IsValid

class IsValid(expr) New in Django 1.10. Availability: PostGIS Accepts a geographic field or expression and tests if the value is well formed. Returns True if its value is a valid geometry and False otherwise.

views.decorators.cache.never_cache()

never_cache(view_func) [source] This decorator adds a Cache-Control: max-age=0, no-cache, no-store, must-revalidate header to a response to indicate that a page should never be cached. Changed in Django 1.9: Before Django 1.9, Cache-Control: max-age=0 was sent. This didn’t reliably prevent caching in all browsers.

gis.geos.GEOSGeometry.ewkb

GEOSGeometry.ewkb Return the EWKB representation of this Geometry as a Python buffer. This is an extension of the WKB specification that includes any SRID value that are a part of this geometry.

http.QueryDict.items()

QueryDict.items() Just like the standard dictionary items() method, except this uses the same last-value logic as __getitem__(). For example: >>> q = QueryDict('a=1&a=2&a=3') >>> q.items() [('a', '3')]

sessions.backends.db.SessionStore

class backends.db.SessionStore Implements database-backed session store. classmethod get_model_class() New in Django 1.9. Override this method to return a custom session model if you need one. create_model_instance(data) New in Django 1.9. Returns a new instance of the session model object, which represents the current session state. Overriding this method provides the ability to modify session model data before it’s saved to database.

template.Library.assignment_tag()

django.template.Library.assignment_tag() Deprecated since version 1.9: simple_tag can now store results in a template variable and should be used instead. To ease the creation of tags setting a variable in the context, Django provides a helper function, assignment_tag. This function works the same way as simple_tag() except that it stores the tag’s result in a specified context variable instead of directly outputting it. Our earlier current_time function could thus be written like this: @r