core.files.storage.Storage

class Storage [source] The Storage class provides a standardized API for storing files, along with a set of default behaviors that all other storage systems can inherit or override as necessary. Note When methods return naive datetime objects, the effective timezone used will be the current value of os.environ['TZ']; note that this is usually set from Django’s TIME_ZONE. accessed_time(name) [source] Returns a naive datetime object containing the last accessed time of the file. For stora

utils.encoding.filepath_to_uri()

filepath_to_uri(path) [source] Convert a file system path to a URI portion that is suitable for inclusion in a URL. The path is assumed to be either UTF-8 or unicode. This method will encode certain characters that would normally be recognized as special characters for URIs. Note that this method does not encode the ‘ character, as it is a valid character within URIs. See encodeURIComponent() JavaScript function for more details. Returns an ASCII string containing the encoded result.

sessions.backends.base.SessionBase.get_expiry_date()

get_expiry_date() Returns the date this session will expire. For sessions with no custom expiration (or those set to expire at browser close), this will equal the date SESSION_COOKIE_AGE seconds from now. This function accepts the same keyword arguments as get_expiry_age().

utils.html.format_html_join()

format_html_join(sep, format_string, args_generator) [source] A wrapper of format_html(), for the common case of a group of arguments that need to be formatted using the same format string, and then joined using sep. sep is also passed through conditional_escape(). args_generator should be an iterator that returns the sequence of args that will be passed to format_html(). For example: format_html_join( '\n', "<li>{} {}</li>", ((u.first_name, u.last_name) for u in users) )

utils.safestring.mark_for_escaping()

mark_for_escaping(s) [source] Deprecated since version 1.10. Explicitly mark a string as requiring HTML escaping upon output. Has no effect on SafeData subclasses. Can be called multiple times on a single string (the resulting escaping is only applied once).

template.context_processors.tz()

tz() [source] If this processor is enabled, every RequestContext will contain a variable TIME_ZONE, providing the name of the currently active time zone.

contenttypes.admin.GenericInlineModelAdmin.ct_field

ct_field The name of the ContentType foreign key field on the model. Defaults to content_type.

core.management.BaseCommand.handle()

BaseCommand.handle(*args, **options) [source] The actual logic of the command. Subclasses must implement this method. It may return a Unicode string which will be printed to stdout (wrapped by BEGIN; and COMMIT; if output_transaction is True).

db.models.Lookup.rhs

rhs The right-hand side - what lhs is being compared against. It can be a plain value, or something that compiles into SQL, typically an F() object or a QuerySet.

gis.geos.PreparedGeometry.covers()

covers(other)