Simple database router was originally written for personal and work purposes.
Project description
Simple database router.
Simple database router was originally written for personal and work purposes.
Quickstart
-
Add
django_auth_db_router
to yourINSTALLED_APPS
setting like this:INSTALLED_APPS = [ ... 'django_auth_db_router', ... ]
-
Add
DATABASE_ROUTERS
setting insettings.py
file:DATABASE_ROUTERS = [ 'django_auth_db_router.routers.AuthRouter', ]
-
Finally, add
auth_db
section toDATABASES
:DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'default.sqlite3', }, 'auth_db': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'auth.sqlite3', }, }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-auth-db-router-0.1.4.tar.gz
.
File metadata
- Download URL: django-auth-db-router-0.1.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0rc2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f775c87ca6b7dd51089708fb4169b6a9034e8fbdf0be7411b9d8264c3695bea3 |
|
MD5 | e16daeb20d189e618a921a0eb11d7c9d |
|
BLAKE2b-256 | 6d7c6f0ed1ceec0af2d036aef60de7bd05b874ed770befe8555decda1b209ebd |