Skip to main content
# 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:

```bash
pip install django-dbase-storage
```

2. Add to INSTALLED_APPS:

```python
INSTALLED_APPS = (
...
'dbfile',
)
```

3. Run migrations to create table to store files

```
python manage.py migrate dbfile
```

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

```python
DEFAULT_FILE_STORAGE = 'dbfile.storage.DatabaseStorage'
```

or specify it for certain fields of your models:

```python
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

Metadata

Release files for django-dbase-storage 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-dbase-storage 0.1.1
File Size Uploaded Provenance
django-dbase-storage-0.1.1.tar.gz 3.9 kB Without provenance Details

Release files / django-dbase-storage-0.1.1.tar.gz

Download URL django-dbase-storage-0.1.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
76bc5269d02386d9297f8685dda661d16446434c06b8182594871f7a8e376e4b
BLAKE2b-256 checksum
How to use checksums
03f475880c919cfd1903ac18688725bac98020dd9b24bd27b27bcbffed0557f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-dbase-storage 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page