Skip to main content

Custom Storage For UpStorage.

Project description

django-upstorage-backend

This is a custom django storage backend for UpStorage

Installation

  1. Install Library Using pip
>> pip install django_upstorage_backend

Starting Guide

  1. Set The Custom Storage Backend. Now Open settings.py of your project.
DEFAULT_FILE_STORAGE = 'django_upstorage_backend.storages.backends.U3Storage'
  1. Set some required KEYS to settings.py
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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_upstorage_backend-0.6.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

django_upstorage_backend-0.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file django_upstorage_backend-0.6.tar.gz.

File metadata

  • Download URL: django_upstorage_backend-0.6.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for django_upstorage_backend-0.6.tar.gz
Algorithm Hash digest
SHA256 e74068788699ac5045ed4eecb5fbfe811bcbcf1650256cb18213ac12a6561308
MD5 ea97bcad34e427eb1d2240bd1c75811b
BLAKE2b-256 4f2eb441c89925b073d42d908e1d1285382a26e9dbf225896e8cf40bc576c163

See more details on using hashes here.

File details

Details for the file django_upstorage_backend-0.6-py3-none-any.whl.

File metadata

  • Download URL: django_upstorage_backend-0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for django_upstorage_backend-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a59b583acbf5be3168d8003f510ac5144573f027939d0e38f85f40d491d46bf7
MD5 67f9a07f5993c75b850116acc2f43d1d
BLAKE2b-256 42223a3e8852a30abb12d8bafa6fc285b2cde54a398e55cc0f7a5ae188eed7e6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page