redirects.middleware.RedirectFallbackMiddleware

class middleware.RedirectFallbackMiddleware You can change the HttpResponse classes used by the middleware by creating a subclass of RedirectFallbackMiddleware and overriding response_gone_class and/or response_redirect_class. response_gone_class The HttpResponse class used when a Redirect is not found for the requested path or has a blank new_path value. Defaults to HttpResponseGone. response_redirect_class The HttpResponse class that handles the redirect. Defaults to HttpResponseP

sessions.backends.db.SessionStore.create_model_instance()

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.

forms.Field.has_changed()

Field.has_changed() [source] The has_changed() method is used to determine if the field value has changed from the initial value. Returns True or False. See the Form.has_changed() documentation for more information.

core.signing.TimestampSigner.unsign()

unsign(value, max_age=None) [source] Checks if value was signed less than max_age seconds ago, otherwise raises SignatureExpired. The max_age parameter can accept an integer or a datetime.timedelta object.

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/"

auth.models.PermissionsMixin.is_superuser

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

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.

forms.BoundField.field

BoundField.field The form Field instance from the form class that this BoundField wraps.