Skip to main content

Database storage for Django files

Project description

# Database storage for Django
This package implements the Django Storage API to store any file in any database supported by Django. In many cases it is a bad idea to store files in database because performance can degrade rapidly.

## Requirements
* Python 2.7, 3+
* Django 1.7+

## Installation
1. Install using pip:

pip install django-dbase-storage



3. Run migrations to create table to store files

python migrate dbfile

Now you can set default storage for the whole project in settings:


or specify it for certain fields of your models:

class UserFiles(models.Model):
file = FileField(storage=DatabaseStorage())

##Known issues
DatabaseStorage fails to store file if debug-toolbar is enabled. Debug-toolbar converts binary to UTF-8 somewhere

Project details

Download files

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

Files for django-dbase-storage, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-dbase-storage-0.1.1.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page