Sample code demonstrating writing a router for django multi-db support
simeonf/django-dualdb-sample
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
This is an quick example of multi-db support in django and a demonstration of the inspectdb management command as requested by students in my Django class. The sample database comes from http://chinookdatabase.codeplex.com/ - see the license for the included .sqlite database there. The chinook app is the result of running the inspectdb command to generate a models file and writng a router to handle my desired use case where: - models from the required contrib apps live in their own .sqlite db - but we create an admin to edit the (otherwise unmodified) chinook database.
About
Sample code demonstrating writing a router for django multi-db support
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published