gis.db.models.PolygonField

class PolygonField

gis.gdal.GDALBand.description

description The name or description of the band, if any.

gis.db.models.functions.Translate

class Translate(expression, x, y, z=0.0, **extra) Availability: PostGIS, SpatiaLite Accepts a single geographic field or expression and returns a geometry with its coordinates offset by the x, y, and optionally z numeric parameters.

urls.resolve()

resolve(path, urlconf=None) [source] path is the URL path you want to resolve. As with reverse(), you don’t need to worry about the urlconf parameter. The function returns a ResolverMatch object that allows you to access various metadata about the resolved URL. If the URL does not resolve, the function raises a Resolver404 exception (a subclass of Http404) .

forms.FilePathField

class FilePathField(**kwargs) [source] Default widget: Select Empty value: None Normalizes to: A unicode object Validates that the selected choice exists in the list of choices. Error message keys: required, invalid_choice The field allows choosing from files inside a certain directory. It takes five extra arguments; only path is required: path The absolute path to the directory whose contents you want listed. This directory must exist. recursive If False (the default) only the

utils.timezone.get_fixed_timezone()

get_fixed_timezone(offset) [source] Returns a tzinfo instance that represents a time zone with a fixed offset from UTC. offset is a datetime.timedelta or an integer number of minutes. Use positive values for time zones east of UTC and negative values for west of UTC.

admin.AdminSite.has_permission()

AdminSite.has_permission(request) [source] Returns True if the user for the given HttpRequest has permission to view at least one page in the admin site. Defaults to requiring both User.is_active and User.is_staff to be True.

test.SimpleTestCase.assertFieldOutput()

SimpleTestCase.assertFieldOutput(fieldclass, valid, invalid, field_args=None, field_kwargs=None, empty_value='') [source] Asserts that a form field behaves correctly with various inputs. Parameters: fieldclass – the class of the field to be tested. valid – a dictionary mapping valid inputs to their expected cleaned values. invalid – a dictionary mapping invalid inputs to one or more raised error messages. field_args – the args passed to instantiate the field. field_kwargs – the kwargs

utils.html.strip_tags()

strip_tags(value) [source] Tries to remove anything that looks like an HTML tag from the string, that is anything contained within <>. Absolutely NO guarantee is provided about the resulting string being HTML safe. So NEVER mark safe the result of a strip_tag call without escaping it first, for example with escape(). For example: strip_tags(value) If value is "<b>Joel</b> <button>is</button> a <span>slug</span>" the return value will be "Joel is a s

core.management.LabelCommand

class LabelCommand A management command which takes one or more arbitrary arguments (labels) on the command line, and does something with each of them. Rather than implementing handle(), subclasses must implement handle_label(), which will be called once for each label.