db.models.fields.files.FieldFile.open()

FieldFile.open(mode='rb') [source]

Opens or reopens the file associated with this instance in the specified mode. Unlike the standard Python open() method, it doesn’t return a file descriptor.

Since the underlying file is opened implicitly when accessing it, it may be unnecessary to call this method except to reset the pointer to the underlying file or to change the mode.

doc_Django
2016-10-09 18:35:33
Comments
Leave a Comment

Please login to continue.