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.oracle', 'NAME': '172.16.50.201/riskpdb', 'USER': 'CR', 'PASSWORD': 'newpa$$word' }, }
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
Close
Hashes for django-auth-db-router-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48e21b9add178308ba628f08caae93fb372e20ce3bea9c3991a485adae2f85d4 |
|
MD5 | efc8b2d07f91abfd2ea421f0f3c8f580 |
|
BLAKE2b-256 | 92a00983c326f7f7f8127192da2b9ab6ba74d9ff74b1f54f53e6201545fc2fdd |