gis.geos.GEOSGeometry.srs

GEOSGeometry.srs Returns a SpatialReference object corresponding to the SRID of the geometry or None. Note Requires GDAL.

http.HttpResponse.seekable()

HttpResponse.seekable() New in Django 1.10: Always False. This method makes an HttpResponse instance a stream-like object.

forms.SplitDateTimeWidget

class SplitDateTimeWidget [source] Wrapper (using MultiWidget) around two widgets: DateInput for the date, and TimeInput for the time. Must be used with SplitDateTimeField rather than DateTimeField. SplitDateTimeWidget has two optional attributes: date_format Similar to DateInput.format time_format Similar to TimeInput.format

utils.encoding.smart_unicode()

smart_unicode(s, encoding='utf-8', strings_only=False, errors='strict') Historical name of smart_text(). Only available under Python 2.

views.debug.SafeExceptionReporterFilter.is_active()

SafeExceptionReporterFilter.is_active(request) [source] Returns True to activate the filtering operated in the other methods. By default the filter is active if DEBUG is False.

auth.models.PermissionsMixin.has_module_perms()

has_module_perms(package_name) Returns True if the user has any permissions in the given package (the Django app label). If the user is inactive, this method will always return False.

auth.backends.RemoteUserBackend.clean_username()

RemoteUserBackend.clean_username(username) Performs any cleaning on the username (e.g. stripping LDAP DN information) prior to using it to get or create a User object. Returns the cleaned username.

forms.Widget

class Widget(attrs=None) [source] This abstract class cannot be rendered, but provides the basic attribute attrs. You may also implement or override the render() method on custom widgets. attrs A dictionary containing HTML attributes to be set on the rendered widget. >>> from django import forms >>> name = forms.TextInput(attrs={'size': 10, 'title': 'Your name',}) >>> name.render('name', 'A name') '<input title="Your name" type="text" name="name" value="A nam

db.models.FileField.upload_to

FileField.upload_to This attribute provides a way of setting the upload directory and file name, and can be set in two ways. In both cases, the value is passed to the Storage.save() method. If you specify a string value, it may contain strftime() formatting, which will be replaced by the date/time of the file upload (so that uploaded files don’t fill up the given directory). For example: class MyModel(models.Model): # file will be uploaded to MEDIA_ROOT/uploads upload = models.FileFi

http.HttpRequest.content_params

HttpRequest.content_params New in Django 1.10. A dictionary of key/value parameters included in the CONTENT_TYPE header.