admin.AdminSite.logout_template

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

views.generic.dates.WeekMixin.week_format

week_format The strftime() format to use when parsing the week. By default, this is '%U', which means the week starts on Sunday. Set it to '%W' if your week starts on Monday.

gis.geos.GEOSGeometry.json

GEOSGeometry.json Returns the GeoJSON representation of the geometry. Note that the result is not a complete GeoJSON structure but only the geometry key content of a GeoJSON structure. See also GeoJSON Serializer.

gis.geos.GeometryCollection

class GeometryCollection(*args, **kwargs) GeometryCollection objects may be instantiated by passing in other GEOSGeometry as arguments, or a single sequence of GEOSGeometry objects: >>> poly = Polygon( ((0, 0), (0, 1), (1, 1), (0, 0)) ) >>> gc = GeometryCollection(Point(0, 0), MultiPoint(Point(0, 0), Point(1, 1)), poly) >>> gc = GeometryCollection((Point(0, 0), MultiPoint(Point(0, 0), Point(1, 1)), poly)) Changed in Django 1.10: In previous versions, an empty Geo

db.models.functions.Now

class Now [source] New in Django 1.9. Returns the database server’s current date and time when the query is executed, typically using the SQL CURRENT_TIMESTAMP. Usage example: >>> from django.db.models.functions import Now >>> Article.objects.filter(published__lte=Now()) <QuerySet [<Article: How to Django>]> PostgreSQL considerations On PostgreSQL, the SQL CURRENT_TIMESTAMP returns the time that the current transaction started. Therefore for cross-database c

db.models.StdDev

class StdDev(expression, sample=False, **extra) [source] Returns the standard deviation of the data in the provided expression. Default alias: <field>__stddev Return type: float Has one optional argument: sample By default, StdDev returns the population standard deviation. However, if sample=True, the return value will be the sample standard deviation. SQLite SQLite doesn’t provide StdDev out of the box. An implementation is available as an extension module for SQLite. Consu

gis.geos.MultiLineString.merged

merged Returns a LineString representing the line merge of all the components in this MultiLineString.

core.management.BaseCommand

class BaseCommand [source] The base class from which all management commands ultimately derive. Use this class if you want access to all of the mechanisms which parse the command-line arguments and work out what code to call in response; if you don’t need to change any of that behavior, consider using one of its subclasses. Subclassing the BaseCommand class requires that you implement the handle() method.

utils.feedgenerator.RssFeed

class RssFeed(SyndicationFeed) [source]

test.SimpleTestCase.assertJSONEqual()

SimpleTestCase.assertJSONEqual(raw, expected_data, msg=None) [source] Asserts that the JSON fragments raw and expected_data are equal. Usual JSON non-significant whitespace rules apply as the heavyweight is delegated to the json library. Output in case of error can be customized with the msg argument.