Metadata-Version: 2.1
Name: django-selectel-storage
Version: 1.0.0
Summary: A Django storage backend allowing you to easily save user-generated and static files inside Selectel Cloud storage rather than a local filesystem, as Django does by default.
Home-page: https://github.com/marazmiki/django-selectel-storage
License: MIT
Keywords: django,selectel,storage,remote storage,http
Author: Mikhail Porokhovnichenko
Author-email: marazmiki@gmail.com
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.11
Classifier: Framework :: Django :: 2.0
Classifier: Framework :: Django :: 2.1
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.0
Classifier: License :: OSI Approved :: BSD License
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Project-URL: Repository, https://github.com/marazmiki/django-selectel-storage
Description-Content-Type: text/x-rst

=======================
django-selectel-storage
=======================



.. image:: https://badge.fury.io/py/django-selectel-storage.svg
    :target: https://badge.fury.io/py/django-selectel-storage

.. image:: https://img.shields.io/pypi/l/django-selectel-storage
    :target: https://raw.githubusercontent.com/marazmiki/django-selectel-storage/master/LICENSE
    :alt: The project license

.. image:: https://travis-ci.org/marazmiki/django-selectel-storage.svg?branch=master
    :target: https://travis-ci.org/marazmiki/django-selectel-storage
    :alt: Travis CI build status

.. image:: https://coveralls.io/repos/marazmiki/django-selectel-storage/badge.svg?branch=master
    :target: https://coveralls.io/r/marazmiki/django-selectel-storage?branch=master
    :alt: Code coverage percentage

.. image:: https://pypip.in/wheel/django-selectel-storage/badge.svg
     :target: https://pypi.python.org/pypi/django-selectel-storage/
     :alt: Wheel Status

.. image:: https://img.shields.io/pypi/pyversions/django-selectel-storage.svg
     :target: https://img.shields.io/pypi/pyversions/django-selectel-storage.svg
     :alt: Supported Python versions

.. image:: https://img.shields.io/pypi/djversions/django-selectel-storage.svg
     :target: https://pypi.org/project/django-selectel-storage/
     :alt: Supported Django versions

.. image:: https://readthedocs.org/projects/django-selectel-storage/badge/?version=latest
     :target: https://django-ulogin.readthedocs.io/ru/latest/?badge=latest
     :alt: Documentation Status

.. image:: https://api.codacy.com/project/badge/Grade/f143275acdf249328a4968b62a94e100
   :alt: Codacy Badge
   :target: https://app.codacy.com/manual/marazmiki/django-selectel-storage?utm_source=github.com&utm_medium=referral&utm_content=marazmiki/django-selectel-storage&utm_campaign=Badge_Grade_Dashboard


This application allows you easily save media and static files into Selectel cloud storage.


Installation
------------

1. Install the package

.. code:: bash

    pip install django-selectel-storage


2. Add to your settings module:

.. code:: python

    DEFAULT_FILE_STORAGE = 'django_selectel_storage.storage.SelectelStorage'
    SELECTEL_STORAGES = {
        'default': {
            'USERNAME': 'xxxx_user1',
            'PASSWORD': 'secret',
            'CONTAINER_NAME': 'bucket',
        },
        'yet-another-schema': {
            'USERNAME': 'yyyy_user2',
            'PASSWORD': 'mystery',
            'CONTAINER_NAME': 'box',

        },
    }

Please see details in the `documentation <https://django-selectel-storage.readthedocs.io/en/latest/>`_.

