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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef1982afaf537a54cd2d7c536866c61309d89e148555cdf08a055e79654f3e33
|
|
| MD5 |
8b49e10788fd0b6fccc3272eaa6334aa
|
|
| BLAKE2b-256 |
511b105dbe2228ea42aa3f7bb3e7b1c3aa56c465975d15ea56b78ef42a633d74
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9a0fe2fd9d21235aff5c40db2043ddd5f16cdc707213993024613874a1c3c67
|
|
| MD5 |
4d9cd4e0f64075dca959c51309083e1d
|
|
| BLAKE2b-256 |
ae5c03cfe64f1e71bca8de4097b2eb6d18b082c49ff5f0b530bac695a59b9a83
|