Skip to content

v0.8.0 — External Storage Backends

Choose a tag to compare

@astro-stack astro-stack released this 09 Apr 00:35
· 14 commits to main since this release

What's New

External Storage Backends

Route all Orbit writes to a dedicated Django database alias instead of your app's default database.

Two backends included:

Backend Description
orbit.backends.database.DatabaseBackend Default — uses default DB, zero config change
orbit.backends.django_db.DjangoDBBackend Dedicated Django database alias

Usage:

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

ORBIT_CONFIG = {
    "STORAGE_BACKEND": "orbit.backends.django_db.DjangoDBBackend",
    "STORAGE_DB_ALIAS": "orbit",
}

python manage.py migrate orbit --database=orbit

All existing users are unaffectedDatabaseBackend is the default and behaves identically to previous versions.

Install

pip install django-orbit==0.8.0

Docs

https://astro-stack.github.io/django-orbit/storage-backends/

**Assets:** `django_orbit-0.8.0-py3-none-any.whl`, `django_orbit-0.8.0.tar.gz`