views.decorators.gzip.gzip_page()

gzip_page() This decorator compresses content if the browser allows gzip compression. It sets the Vary header accordingly, so that caches will base their storage on the Accept-Encoding header.

views.i18n.JavaScriptCatalog.domain

domain Translation domain containing strings to add in the view output. Defaults to 'djangojs'.

gis.gdal.Point.z

z Returns the Z coordinate of this point, or None if the point does not have a Z coordinate: >>> OGRGeometry('POINT (1 2 3)').z 3.0

gis.geos.PreparedGeometry.covers()

covers(other)

gis.geos.GEOSGeometry.difference()

GEOSGeometry.difference(other) Returns a GEOSGeometry representing the points making up this geometry that do not make up other.

gis.geos.PreparedGeometry.overlaps()

overlaps(other)

Writing your first Django app, part 3

This tutorial begins where Tutorial 2 left off. We’re continuing the Web-poll application and will focus on creating the public interface – “views.” Overview A view is a “type” of Web page in your Django application that generally serves a specific function and has a specific template. For example, in a blog application, you might have the following views: Blog homepage – displays the latest few entries. Entry “detail” page – permalink page for a single entry. Year-based archive page – displays

test.LiveServerTestCase

class LiveServerTestCase [source] LiveServerTestCase does basically the same as TransactionTestCase with one extra feature: it launches a live Django server in the background on setup, and shuts it down on teardown. This allows the use of automated test clients other than the Django dummy client such as, for example, the Selenium client, to execute a series of functional tests inside a browser and simulate a real user’s actions. By default the live server listens on localhost and picks the f

gis.geos.GEOSGeometry.project_normalized()

GEOSGeometry.project_normalized(point) Returns the distance (float) from the origin of the geometry (LineString or MultiLineString) to the point projected on the geometry (that is to a point of the line the closest to the given point). The normalized version returns the distance as a float between 0 (origin) and 1 (endpoint). Reverse of GEOSGeometry.interpolate().

views.generic.dates.BaseDateDetailView

class BaseDateDetailView [source]