david / django-storages

Support for many storages (S3, MogileFS, etc) in Django.

Clone this repository (size: 160.0 KB): HTTPS / SSH
$ hg clone http://code.welldev.org/django-storages/

Generic storages for Django.

S3 storage

This storage allows you to use S3 aka. Amazon Simple Storage Service.

See the complete documentation of the S3 storage.

ImageStorage

A custom FileSystemStorage made for normalizing extensions. It lets PIL look at the file to determine the format and append an always lower-case extension based on the results.

OverwriteStorage

This is a simple implementation overwrite of the FileSystemStorage. It removes the addition of an '_' to the filename if the file already exists in the storage system. I needed a model in the admin area to act exactly like a file system (overwriting the file if it already exists).

MogileFSStorage

This storage allows you to use MogileFS, it comes from this blog post. Feel free to test and report bugs, I can't test myself.

See the complete documentation of the MogileFS storage.

FTPStorage

This implementation was done preliminary for upload files in admin to remote FTP location and read them back on site by HTTP. It was tested mostly in this configuration, so read/write using FTPStorageFile class may break.

CAUTION: This FTP storage is not prepared to work with large files, because it uses memory for temporary data storage. It also does not close FTP connection automatically (but open it lazy and try to reestablish when disconnected).

Database storage

This storage allows you to store files in a database.

See the complete documentation of the database storage.

SymlinkOrCopy storage

Stores symlinks to files instead of actual files whenever possible

When a file that's being saved is currently stored in the symlink_within directory, then symlink the file. Otherwise, copy the file.

CouchDB storage

A custom storage system for Django with CouchDB backend.

CloudFilesStorage

This storage allows you to store files on Mosso Cloud Files and serve those files using the Limelight CDN. Feel free to test and report bugs.

See the complete documentation of the CloudFilesStorage.


This revision is from 2009-12-04 04:28