template.Engine.from_string()

Engine.from_string(template_code) [source] Compiles the given template code and returns a Template object.

forms.SlugField.allow_unicode

allow_unicode New in Django 1.9. A boolean instructing the field to accept Unicode letters in addition to ASCII letters. Defaults to False.

gis.geoip.GeoIP.record_by_name()

GeoIP.record_by_name(query)

admin.ModelAdmin.filter_horizontal

ModelAdmin.filter_horizontal By default, a ManyToManyField is displayed in the admin site with a <select multiple>. However, multiple-select boxes can be difficult to use when selecting many items. Adding a ManyToManyField to this list will instead use a nifty unobtrusive JavaScript “filter” interface that allows searching within the options. The unselected and selected options appear in two boxes side by side. See filter_vertical to use a vertical interface.

gis.geos.WKTWriter

class WKTWriter(dim=2, trim=False, precision=None) This class allows outputting the WKT representation of a geometry. See the WKBWriter.outdim, trim, and precision attributes for details about the constructor arguments. Changed in Django 1.10: The ability to pass the dim, trim, and precision arguments to the constructor was added. write(geom) Returns the WKT of the given geometry. Example: >>> from django.contrib.gis.geos import Point, WKTWriter >>> pnt = Point(1, 1)

Getting started

New to Django? Or to Web development in general? Well, you came to the right place: read this material to quickly get up and running. Django at a glance Quick install guide Writing your first Django app, part 1 Writing your first Django app, part 2 Writing your first Django app, part 3 Writing your first Django app, part 4 Writing your first Django app, part 5 Writing your first Django app, part 6 Writing your first Django app, part 7 Advanced tutorial: How to write reusable apps What to read n

sitemaps.Sitemap.protocol

protocol Optional. This attribute defines the protocol ('http' or 'https') of the URLs in the sitemap. If it isn’t set, the protocol with which the sitemap was requested is used. If the sitemap is built outside the context of a request, the default is 'http'.

gis.db.models.Extent3D

class Extent3D(geo_field) Availability: PostGIS Returns the 3D extent of all geo_field in the QuerySet as a six-tuple, comprising the lower left coordinate and upper right coordinate (each with x, y, and z coordinates). Example: >>> qs = City.objects.filter(name__in=('Houston', 'Dallas')).aggregate(Extent3D('poly')) >>> print(qs['poly__extent3d']) (-96.8016128540039, 29.7633724212646, 0, -95.3631439208984, 32.782058715820, 0)

postgres.fields.ArrayField.size

size This is an optional argument. If passed, the array will have a maximum size as specified. This will be passed to the database, although PostgreSQL at present does not enforce the restriction.

template.response.SimpleTemplateResponse.add_post_render_callback()

SimpleTemplateResponse.add_post_render_callback() [source] Add a callback that will be invoked after rendering has taken place. This hook can be used to defer certain processing operations (such as caching) until after rendering has occurred. If the SimpleTemplateResponse has already been rendered, the callback will be invoked immediately. When called, callbacks will be passed a single argument – the rendered SimpleTemplateResponse instance. If the callback returns a value that is not None,