All Projects → jschneier → Django Storages

jschneier / Django Storages

Licence: bsd-3-clause
django-storages is a project to provide a variety of storage backends in a single library.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Django Storages

Modoboa
Mail hosting made simple
Stars: ✭ 1,998 (-2.39%)
Mutual labels:  django
Django Pgviews
Fork of django-postgres that focuses on maintaining and improving support for Postgres SQL Views.
Stars: ✭ 150 (-92.67%)
Mutual labels:  django
Django Newsfeed
A news curator and newsletter subscription package for Django
Stars: ✭ 155 (-92.43%)
Mutual labels:  django
Djangocms Installer
Console wizard to bootstrap django CMS projects
Stars: ✭ 148 (-92.77%)
Mutual labels:  django
Appstore
🏪 App Store for Nextcloud
Stars: ✭ 149 (-92.72%)
Mutual labels:  django
Faq
Useful Django-related information collected by `@pydjango` chat users.
Stars: ✭ 152 (-92.57%)
Mutual labels:  django
Django Gamification
The missing Django Gamification Package
Stars: ✭ 147 (-92.82%)
Mutual labels:  django
Behave Django
Behave BDD integration for Django
Stars: ✭ 155 (-92.43%)
Mutual labels:  django
Drf Url Filters
A django app to apply filters on drf querysets using query params with validations using voluptuous.
Stars: ✭ 150 (-92.67%)
Mutual labels:  django
Django Polymorphic Tree
Polymorphic MPTT tree support for models
Stars: ✭ 152 (-92.57%)
Mutual labels:  django
Book recommend
基于协同过滤的书籍推荐系统
Stars: ✭ 149 (-92.72%)
Mutual labels:  django
React Django
Simple setup for a React-Django web app.
Stars: ✭ 149 (-92.72%)
Mutual labels:  django
Django Lb Workflow
Reusable workflow library for Django
Stars: ✭ 153 (-92.53%)
Mutual labels:  django
Alize
Visualize Your Github Profile
Stars: ✭ 148 (-92.77%)
Mutual labels:  django
Froggy Service
邱威傑市民服務網站
Stars: ✭ 155 (-92.43%)
Mutual labels:  django
Django Pgcrypto Fields
Transparent field level encryption for Django using the pgcrypto postgresql extension.
Stars: ✭ 147 (-92.82%)
Mutual labels:  django
Django School Management
Deployment Ready Developer to Developer Full-stack School Management System with payments, e-admission, result management, academic functionalities, and much more implemented in a simple way.
Stars: ✭ 151 (-92.62%)
Mutual labels:  django
Nitrate
Django based full-featured test case management system
Stars: ✭ 154 (-92.48%)
Mutual labels:  django
Bovespastockratings
Crawler for Fundamental analysis platform for BOVESPA stocks, generating a score for each share according to the selected criteria on the indicators.
Stars: ✭ 154 (-92.48%)
Mutual labels:  django
Pychat
webchat via WebSockets/WebRTC that allows messaging/video call/screen sharing
Stars: ✭ 152 (-92.57%)
Mutual labels:  django

Django-Storages

PyPI Version Build Status

Installation

Installing from PyPI is as easy as doing:

pip install django-storages

If you'd prefer to install from source (maybe there is a bugfix in master that hasn't been released yet) then the magic incantation you are looking for is:

pip install -e 'git+https://github.com/jschneier/django-storages.git#egg=django-storages'

Once that is done set DEFAULT_FILE_STORAGE to the backend of your choice. If, for example, you want to use the boto3 backend you would set:

DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'

If you are using the FileSystemStorage as your storage management class in your models FileField fields, remove them and don't specify any storage parameter. That way, the DEFAULT_FILE_STORAGE class will be used by default in your field. For example, if you have a photo field defined as:

photo = models.FileField(
    storage=FileSystemStorage(location=settings.MEDIA_ROOT),
    upload_to='photos',
)

Set it to just:

photo = models.FileField(
    upload_to='photos',
)

There are also a number of settings available to control how each storage backend functions, please consult the documentation for a comprehensive list.

About

django-storages is a project to provide a variety of storage backends in a single library.

This library is usually compatible with the currently supported versions of Django. Check the Trove classifiers in setup.py to be sure.

django-storages is backed in part by Tidelift. Check them out for all of your enterprise open source software commerical support needs.

Security

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure. Please do not post a public issue on the tracker.

History

This repo began as a fork of the original library under the package name of django-storages-redux and became the official successor (releasing under django-storages on PyPI) in February of 2016.

Found a Bug? Something Unsupported?

I suspect that a few of the storage engines in backends/ have been unsupported for quite a long time. I personally only really need the S3Storage backend but welcome bug reports (and especially) patches and tests for some of the other backends.

Issues are tracked via GitHub issues at the project issue page.

Documentation

Documentation for django-storages is located at https://django-storages.readthedocs.io/.

Contributing

  1. Check for open issues at the project issue page or open a new issue to start a discussion about a feature or bug.
  2. Fork the django-storages repository on GitHub to start making changes.
  3. Add a test case to show that the bug is fixed or the feature is implemented correctly.
  4. Bug me until I can merge your pull request. Also, don't forget to add yourself to AUTHORS.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].