db.models.TimeField

class TimeField(auto_now=False, auto_now_add=False, **options) [source] A time, represented in Python by a datetime.time instance. Accepts the same auto-population options as DateField. The default form widget for this field is a TextInput. The admin adds some JavaScript shortcuts.

template.Context.push()

Context.push()

admin.ModelAdmin.add_view()

ModelAdmin.add_view(request, form_url='', extra_context=None) [source] Django view for the model instance addition page. See note below.

apps.apps.get_model()

apps.get_model(app_label, model_name) Returns the Model with the given app_label and model_name. As a shortcut, this method also accepts a single argument in the form app_label.model_name. model_name is case-insensitive. Raises LookupError if no such application or model exists. Raises ValueError when called with a single argument that doesn’t contain exactly one dot.

utils.encoding.force_bytes()

force_bytes(s, encoding='utf-8', strings_only=False, errors='strict') [source] Similar to smart_bytes, except that lazy instances are resolved to bytestrings, rather than kept as lazy objects. If strings_only is True, don’t convert (some) non-string-like objects.

sessions.base_session.AbstractBaseSession.session_data

session_data A string containing an encoded and serialized session dictionary.

admin.ModelAdmin.actions_on_top

ModelAdmin.actions_on_top

utils.log.AdminEmailHandler.send_mail()

send_mail(subject, message, *args, **kwargs) [source] Sends emails to admin users. To customize this behavior, you can subclass the AdminEmailHandler class and override this method.

gis.gdal.SpatialReference

class SpatialReference(srs_input) Spatial reference objects are initialized on the given srs_input, which may be one of the following: OGC Well Known Text (WKT) (a string) EPSG code (integer or string) PROJ.4 string A shorthand string for well-known standards ('WGS84', 'WGS72', 'NAD27', 'NAD83') Example: >>> wgs84 = SpatialReference('WGS84') # shorthand string >>> wgs84 = SpatialReference(4326) # EPSG code >>> wgs84 = SpatialReference('EPSG:4326') # EPSG string &

core.management.BaseCommand.style

BaseCommand.style An instance attribute that helps create colored output when writing to stdout or stderr. For example: self.stdout.write(self.style.SUCCESS('...')) See Syntax coloring to learn how to modify the color palette and to see the available styles (use uppercased versions of the “roles” described in that section). If you pass the --no-color option when running your command, all self.style() calls will return the original string uncolored.