core.signing.TimestampSigner.unsign()

unsign(value, max_age=None) [source] Checks if value was signed less than max_age seconds ago, otherwise raises SignatureExpired. The max_age parameter can accept an integer or a datetime.timedelta object.

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().

core.files.uploadedfile.TemporaryUploadedFile.temporary_file_path()

TemporaryUploadedFile.temporary_file_path() [source] Returns the full path to the temporary uploaded file.

http.HttpRequest.readlines()

HttpRequest.readlines() [source]

apps.AppConfig.models_module

AppConfig.models_module Module containing the models, e.g. <module 'django.contrib.admin.models' from 'django/contrib/admin/models.pyc'>. It may be None if the application doesn’t contain a models module. Note that the database related signals such as pre_migrate and post_migrate are only emitted for applications that have a models module.

test.Response.status_code

status_code The HTTP status of the response, as an integer. For a full list of defined codes, see the IANA status code registry.

staticfiles.storage.ManifestStaticFilesStorage

class storage.ManifestStaticFilesStorage A subclass of the StaticFilesStorage storage backend which stores the file names it handles by appending the MD5 hash of the file’s content to the filename. For example, the file css/styles.css would also be saved as css/styles.55e7cbb9ba48.css. The purpose of this storage is to keep serving the old files in case some pages still refer to those files, e.g. because they are cached by you or a 3rd party proxy server. Additionally, it’s very helpful if y

db.models.get_transform()

get_transform(transform_name) Must return the lookup named transform_name. For instance, by returning self.output_field.get_transform(transform_name).

forms.Field.has_changed()

Field.has_changed() [source] The has_changed() method is used to determine if the field value has changed from the initial value. Returns True or False. See the Form.has_changed() documentation for more information.