Metadata-Version: 2.1
Name: django-upstorage-backend
Version: 0.6
Summary: Custom Storage For UpStorage.
Home-page: https://github.com/QuackCoding/DjangoUpStorageBackend
Author: Sakib (Florian Dedov)
Author-email: <mail@neuralnine.com>
License: UNKNOWN
Keywords: python,storage,api,upstorage,django_upstorage_backend
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown
Requires-Dist: UpStorageApiClient

## django-upstorage-backend

This is a custom django storage backend for `UpStorage`

## Installation
1. Install Library Using `pip`
````shell script
>> pip install django_upstorage_backend
````

## Starting Guide

1. Set The Custom Storage Backend. Now Open settings.py of your project.
````python
DEFAULT_FILE_STORAGE = 'django_upstorage_backend.storages.backends.U3Storage'
````

2. Set some required KEYS to `settings.py`
````python
AUTH_TOKEN = 'auth token from your account'
API_KEY = 'api key of your project'
USERNAME = 'username of your account'
PROJECT_NAME = 'Created Project name'
````

Thats it, We are all done. Now all of your files will be handeled by the custom UpStorage's Backend Storage.

## Some More Info

* `You don't need to set 'upload_to' in model Fields (Defaultly it files will be saved on the root of your project.)`

* `File Link Will Be Stored On Your Model As Expected.You Can call them as you do usally.`


## Upcoming Updates

* `Deletes File from UpStorage When Django Deletes it from its own database.You can easily enable or disable this feature`

* `Save Files On Custom Folders In Your Project.You can set specific folder location by adding the folder name on 'upload_to='my_folder' on ModelFields.By using this you can organize your files into specific folders.`




