views.generic.list.MultipleObjectMixin

class django.views.generic.list.MultipleObjectMixin A mixin that can be used to display a list of objects. If paginate_by is specified, Django will paginate the results returned by this. You can specify the page number in the URL in one of two ways: Use the page parameter in the URLconf. For example, this is what your URLconf might look like: url(r'^objects/page(?P<page>[0-9]+)/$', PaginatedView.as_view()), Pass the page number via the page query-string parameter. For example, a UR

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.

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.

admin.AdminSite.login_form

AdminSite.login_form Subclass of AuthenticationForm that will be used by the admin site login view.

test.TransactionTestCase.reset_sequences

TransactionTestCase.reset_sequences Setting reset_sequences = True on a TransactionTestCase will make sure sequences are always reset before the test run: class TestsThatDependsOnPrimaryKeySequences(TransactionTestCase): reset_sequences = True def test_animal_pk(self): lion = Animal.objects.create(name="lion", sound="roar") # lion.pk is guaranteed to always be 1 self.assertEqual(lion.pk, 1) Unless you are explicitly testing primary keys sequence numbers, it

db.models.Options.base_manager_name

Options.base_manager_name New in Django 1.10. The name of the manager to use for the model’s _base_manager.

gis.db.models.MultiPolygonField

class MultiPolygonField