Skip to main content

A simple Django app to store files in a db.

Project description

Django Simple DB Storage

A very simple app implementing the Django storages API, storing files in a database. A very simple view is provided for downloading files.

Getting Started

  1. Install the django-simpledbstorage pip package
  2. Add the app to your project's INSTALLED_APPS, and urls
  3. Set DEFAULT_FILE_STORAGE to 'simpledbstorage.storage.DatabaseStorage'
  4. Set your MEDIA_URL, if relevant to you

Example

In settings.py:

DEFAULT_FILE_STORAGE = 'simpledbstorage.storage.DatabaseStorage'
INSTALLED_APPS.append('simpledbstorage')
MEDIA_URL = '/{}{}/'.format(BASE_PATH, 'files/')

In urls.py or wherever your URLconf lives:

urlpatterns = [
  url(r'^files/', include('simpledbstorage.urls'))
]

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

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-simpledbstorage-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_simpledbstorage-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file django-simpledbstorage-0.1.1.tar.gz.

File metadata

  • Download URL: django-simpledbstorage-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for django-simpledbstorage-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ef1982afaf537a54cd2d7c536866c61309d89e148555cdf08a055e79654f3e33
MD5 8b49e10788fd0b6fccc3272eaa6334aa
BLAKE2b-256 511b105dbe2228ea42aa3f7bb3e7b1c3aa56c465975d15ea56b78ef42a633d74

See more details on using hashes here.

File details

Details for the file django_simpledbstorage-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: django_simpledbstorage-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for django_simpledbstorage-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9a0fe2fd9d21235aff5c40db2043ddd5f16cdc707213993024613874a1c3c67
MD5 4d9cd4e0f64075dca959c51309083e1d
BLAKE2b-256 ae5c03cfe64f1e71bca8de4097b2eb6d18b082c49ff5f0b530bac695a59b9a83

See more details on using hashes here.

Supported by

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