db.models.StdDev.sample

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. Consult the SQlite documentation for instructions on obtaining and installing this extension.

gis.geoip.GeoIP.city_info

GeoIP.city_info This property returns information about the GeoIP city database.

sessions.backends.base.SessionBase.set_test_cookie()

set_test_cookie() Sets a test cookie to determine whether the user’s browser supports cookies. Due to the way cookies work, you won’t be able to test this until the user’s next page request. See Setting test cookies below for more information.

gis.gdal.GeometryCollection

class GeometryCollection add(geom) Adds a geometry to this geometry collection. Not applicable to other geometry types.

views.generic.dates.DateMixin.allow_future

allow_future A boolean specifying whether to include “future” objects on this page, where “future” means objects in which the field specified in date_field is greater than the current date/time. By default, this is False.

db.transaction.get_rollback()

get_rollback(using=None) [source]

forms.Field.label

Field.label The label argument lets you specify the “human-friendly” label for this field. This is used when the Field is displayed in a Form. As explained in “Outputting forms as HTML” above, the default label for a Field is generated from the field name by converting all underscores to spaces and upper-casing the first letter. Specify label if that default behavior doesn’t result in an adequate label. Here’s a full example Form that implements label for two of its fields. We’ve specified a

gis.forms.MultiLineStringField

class MultiLineStringField

GeoDjango Installation

Overview In general, GeoDjango installation requires: Python and Django Spatial database Installing Geospatial libraries Details for each of the requirements and installation instructions are provided in the sections below. In addition, platform-specific instructions are available for: Mac OS X Windows Use the Source Because GeoDjango takes advantage of the latest in the open source geospatial software technology, recent versions of the libraries are necessary. If binary packages aren’t av

Outputting PDFs with Django

This document explains how to output PDF files dynamically using Django views. This is made possible by the excellent, open-source ReportLab Python PDF library. The advantage of generating PDF files dynamically is that you can create customized PDFs for different purposes – say, for different users or different pieces of content. For example, Django was used at kusports.com to generate customized, printer-friendly NCAA tournament brackets, as PDF files, for people participating in a March Madne