Skip to main content

Dynamic database router

Project description


Django-magic-db-router is an app to allow Django system can auto pick random database for read/write, generally!

The key feature is we can use dedicated database for code block, this will usefull for transaction handler!

Quick start
1. Install the app:
pip install django-magic-db-router

2. Config your settings file, for example:
DATABASE_ROUTERS = ['django_magic_db_router.DynamicDbRouter']

3. For using dedicated database for code block, use: `in_database`
with in_database(db_name, write=True):


Project details

Release history Release notifications | RSS feed

This version


Download files

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

Files for django-magic-db-router, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-magic-db-router-0.1.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page