gis.geos.MultiPoint

class MultiPoint(*args, **kwargs) MultiPoint objects may be instantiated by passing in Point objects as arguments, or a single sequence of Point objects: >>> mp = MultiPoint(Point(0, 0), Point(1, 1)) >>> mp = MultiPoint( (Point(0, 0), Point(1, 1)) ) Changed in Django 1.10: In previous versions, an empty MultiPoint couldn’t be instantiated.

views.generic.list.MultipleObjectMixin.context_object_name

context_object_name Designates the name of the variable to use in the context.

template.loader.select_template()

select_template(template_name_list, using=None) [source] select_template() is just like get_template(), except it takes a list of template names. It tries each name in order and returns the first template that exists. If loading a template fails, the following two exceptions, defined in django.template, may be raised:

utils.cache.patch_response_headers()

patch_response_headers(response, cache_timeout=None) [source] Adds some useful headers to the given HttpResponse object: ETag Last-Modified Expires Cache-Control Each header is only added if it isn’t already set. cache_timeout is in seconds. The CACHE_MIDDLEWARE_SECONDS setting is used by default.

http.HttpResponse.writelines()

HttpResponse.writelines(lines) [source] Writes a list of lines to the response. Line separators are not added. This method makes an HttpResponse instance a stream-like object.

core.files.storage.Storage.open()

open(name, mode='rb') [source] Opens the file given by name. Note that although the returned file is guaranteed to be a File object, it might actually be some subclass. In the case of remote file storage this means that reading/writing could be quite slow, so be warned.

admin.ModelAdmin.get_urls()

ModelAdmin.get_urls() [source] The get_urls method on a ModelAdmin returns the URLs to be used for that ModelAdmin in the same way as a URLconf. Therefore you can extend them as documented in URL dispatcher: class MyModelAdmin(admin.ModelAdmin): def get_urls(self): urls = super(MyModelAdmin, self).get_urls() my_urls = [ url(r'^my_view/$', self.my_view), ] return my_urls + urls def my_view(self, request): # ... context = dic

db.models.DateField

class DateField(auto_now=False, auto_now_add=False, **options) [source] A date, represented in Python by a datetime.date instance. Has a few extra, optional arguments:

http.HttpResponse.has_header()

HttpResponse.has_header(header) Returns True or False based on a case-insensitive check for a header with the given name.

apps.AppConfig.verbose_name

AppConfig.verbose_name Human-readable name for the application, e.g. “Administration”. This attribute defaults to label.title().