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
- Install the django-simpledbstorage pip package
- Add the app to your project's INSTALLED_APPS, and urls
- Set DEFAULT_FILE_STORAGE to 'simpledbstorage.storage.DatabaseStorage'
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-simpledbstorage-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef1982afaf537a54cd2d7c536866c61309d89e148555cdf08a055e79654f3e33 |
|
MD5 | 8b49e10788fd0b6fccc3272eaa6334aa |
|
BLAKE2b-256 | 511b105dbe2228ea42aa3f7bb3e7b1c3aa56c465975d15ea56b78ef42a633d74 |
Close
Hashes for django_simpledbstorage-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9a0fe2fd9d21235aff5c40db2043ddd5f16cdc707213993024613874a1c3c67 |
|
MD5 | 4d9cd4e0f64075dca959c51309083e1d |
|
BLAKE2b-256 | ae5c03cfe64f1e71bca8de4097b2eb6d18b082c49ff5f0b530bac695a59b9a83 |