APIActive

Django File Storage API

Django's standardized file storage API with FileSystemStorage, InMemoryStorage, and Storage classes.

Open source page

Product features

Product features

alias() ¶

annotate() ¶

default_storage

Instance of DefaultStorage providing lazy access to the default storage system.

distinct() ¶

exclude() ¶

FileSystemStorage

Implements basic file storage on a local filesystem, inheriting from Storage.

filter() ¶

InMemoryStorage

Implements memory-based file storage with no persistence, useful for tests.

Methods that return new QuerySet s ¶

order_by() ¶

Pickling QuerySet s ¶

QuerySet API ¶

QuerySet API reference ¶

reverse() ¶

Storage

Provides a standardized API for storing files with default behaviors to inherit or override.

storages

Dictionary-like object for retrieving a storage instance by alias defined in STORAGES.

When QuerySet s are evaluated ¶