Skip to main content

dj-bucket

Store blobs into a database table.

Setup

In your configuration add the dj-bucket app to the installed apps:

INSTALLED_APPS: = [
    "dj_bucket",
]

# Bucket base path no starting and no ending slash
BUCKET_PATH="bucket"

Then make sure a database backend is setup, for testing you can use the SQLite:

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.sqlite3",
        "NAME": BASE_DIR / "db.sqlite3",
    }
}

Add the bucket URL to your urls.py:

from dj_bucket.urls import urlpatterns as dj_bucket_urls

urlpatterns = [
    path("", include(dj_bucket_urls)),
    ...
]

Run the Django database migrations to create the table that will store the blobs.

Wagtail

With wagtail you need to declare the storage in the STORAGES variable:

STORAGES = {
    "default": {
        "BACKEND": "dj_bucket.models.Bucket",
    }
}

Metadata

Release files for dj-bucket 0.1.3

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

Source distribution (sdist)

Source distribution for dj-bucket 0.1.3
File Size Uploaded Provenance Actions
dj_bucket-0.1.3.tar.gz 5.7 kB Without provenance Details for dj_bucket-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dj-bucket 0.1.3
File Interpreter ABI Platform Actions
dj_bucket-0.1.3-py3-none-any.whl Python 3 none any Details for dj_bucket-0.1.3-py3-none-any.whl

Total release size: 12.1 kB

Release files / dj_bucket-0.1.3.tar.gz

Download URL dj_bucket-0.1.3.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
090b07422ba1131fd5c64c041d7dfedd5ffab1da050c53198a08dce3e1978325
BLAKE2b-256 checksum
How to use checksums
92c9958eefcb1fece293b95ee6bcf1f85f450484e2d2c7dc5d28920d654c103a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.29.2 CPython/3.12.14 Linux/6.17.0-1022-azure

Release files / dj_bucket-0.1.3-py3-none-any.whl

Download URL dj_bucket-0.1.3-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df221c22d7f65008f349aaa05fe03bc27e41bfafb787beef68a2e2b4f48daeaf
BLAKE2b-256 checksum
How to use checksums
0de34ade3e0a12448b2e0a2a807ac0e599c0775040e641f6858a10a9e1eb6938
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.29.2 CPython/3.12.14 Linux/6.17.0-1022-azure

Security for dj-bucket 0.1.3

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.

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