gis.geos.PreparedGeometry.intersects()

intersects(other)

File Uploads

When Django handles a file upload, the file data ends up placed in request.FILES (for more on the request object see the documentation for request and response objects). This document explains how files are stored on disk and in memory, and how to customize the default behavior. Warning There are security risks if you are accepting uploaded content from untrusted users! See the security guide’s topic on User-uploaded content for mitigation details. Basic file uploads Consider a simple form co

core.management.AppCommand.handle_app_config()

AppCommand.handle_app_config(app_config, **options) Perform the command’s actions for app_config, which will be an AppConfig instance corresponding to an application label given on the command line.

utils.log.RequireDebugTrue

class RequireDebugTrue [source] This filter is similar to RequireDebugFalse, except that records are passed only when DEBUG is True.

gis.geos.WKTWriter.write()

write(geom) Returns the WKT of the given geometry. Example: >>> from django.contrib.gis.geos import Point, WKTWriter >>> pnt = Point(1, 1) >>> wkt_w = WKTWriter() >>> wkt_w.write(pnt) 'POINT (1.0000000000000000 1.0000000000000000)'

gis.geos.LinearRing

class LinearRing(*args, **kwargs) LinearRing objects are constructed in the exact same way as LineString objects, however the coordinates must be closed, in other words, the first coordinates must be the same as the last coordinates. For example: >>> ls = LinearRing((0, 0), (0, 1), (1, 1), (0, 0)) Notice that (0, 0) is the first and last coordinate – if they were not equal, an error would be raised.

views.generic.dates.DateMixin.get_allow_future()

get_allow_future() [source] Determine 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. Returns allow_future by default.

db.models.query.QuerySet.filter()

filter(**kwargs) Returns a new QuerySet containing objects that match the given lookup parameters. The lookup parameters (**kwargs) should be in the format described in Field lookups below. Multiple parameters are joined via AND in the underlying SQL statement. If you need to execute more complex queries (for example, queries with OR statements), you can use Q objects.

forms.Field

class Field(**kwargs) [source] When you create a Form class, the most important part is defining the fields of the form. Each field has custom validation logic, along with a few other hooks.

http.QueryDict.values()

QueryDict.values() Just like the standard dictionary values() method, except this uses the same last-value logic as __getitem__(). For example: >>> q = QueryDict('a=1&a=2&a=3') >>> q.values() ['3']