File storage API

File storage API

Getting the current storage class

Django provides two convenient ways to access the current storage class:

class DefaultStorage [source]

DefaultStorage provides lazy access to the current default storage system as defined by DEFAULT_FILE_STORAGE. 登录查看完整内容