sessions.backends.base.SessionBase.get()

get(key, default=None) Example: fav_color = request.session.get('fav_color', 'red')

contenttypes.fields.GenericRelation

class GenericRelation related_query_name The relation on the related object back to this object doesn’t exist by default. Setting related_query_name creates a relation from the related object back to this one. This allows querying and filtering from the related object. If you know which models you’ll be using most often, you can also add a “reverse” generic relationship to enable an additional API. For example: from django.db import models from django.contrib.contenttypes.fields import

db.models.GenericIPAddressField.unpack_ipv4

GenericIPAddressField.unpack_ipv4 Unpacks IPv4 mapped addresses like ::ffff:192.0.2.1. If this option is enabled that address would be unpacked to 192.0.2.1. Default is disabled. Can only be used when protocol is set to 'both'. If you allow for blank values, you have to allow for null values since blank values are stored as null.

utils.html.format_html_join()

format_html_join(sep, format_string, args_generator) [source] A wrapper of format_html(), for the common case of a group of arguments that need to be formatted using the same format string, and then joined using sep. sep is also passed through conditional_escape(). args_generator should be an iterator that returns the sequence of args that will be passed to format_html(). For example: format_html_join( '\n', "<li>{} {}</li>", ((u.first_name, u.last_name) for u in users) )

template.base.Origin.name

name The path to the template as returned by the template loader. For loaders that read from the file system, this is the full path to the template. If the template is instantiated directly rather than through a template loader, this is a string value of <unknown_source>.

Quick install guide

Before you can use Django, you’ll need to get it installed. We have a complete installation guide that covers all the possibilities; this guide will guide you to a simple, minimal installation that’ll work while you walk through the introduction. Install Python Being a Python Web framework, Django requires Python. See What Python version can I use with Django? for details. Python includes a lightweight database called SQLite so you won’t need to set up a database just yet. Get the latest versio

gis.widgets.BaseGeometryWidget.supports_3d

BaseGeometryWidget.supports_3d Indicates if the widget supports edition of 3D data (default is False).

http.HttpRequest.path

HttpRequest.path A string representing the full path to the requested page, not including the scheme or domain. Example: "/music/bands/the_beatles/"

postgres.aggregates.RegrSYY

class RegrSYY(y, x) [source] Returns sum(y^2) - sum(y)^2/N (“sum of squares” of the dependent variable) as a float, or None if there aren’t any matching rows.

auth.models.PermissionsMixin.is_superuser

is_superuser Boolean. Designates that this user has all permissions without explicitly assigning them.