A very simple app implementing the Django storages API, storing files in a database. A very simple view is provided for downloading files.
- 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
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'))
]
We use SemVer for versioning. For the versions available, see the tags on this repository.