python


How to use multidatabase across multiproject in django?


I have several django projects to serve different services which have connection to each other (ignore the reason why). To isolate each service, I provide a lib to do the dirty job. The problem is that I can import models from different projects but django maps every model to the database of the running project NOT the project which the model belongs to.
Tried many options but just can't fix it. Again, services should be isolated in each project and can communicate to each other only by lib.
You should setup all the connections needed in your settings and use database routers for routing the request to the correct database connection, depending on the model.

Related Links

Tensorflow Slim: 'module' object has no attribute 'sum_of_squares'
Trouble trying to test Tensorflow's RNN PTB example
Assert two variables are almost equal in python
PyQt: How to expand all children in a QTreeWidget
How to insert into sqlite faster [duplicate]
How to read and extract and merge multiple huge size csv(1G~)?
how to extract data from json. other answers here did not work for me
How to execute a script or a funciton through python setuptoos?
jinja2 link to static files
multiple checkbox sqlalchemy delete
Pycharm Quick Documentation: Fetching Documentation
How can I create binary label from two tables
pyautogui.locateOnScreen() Returns… Nothing?
How can I judge whether a mail send sccess or not use Python?
Django Admin list_display product list
Python: How can I index in MapReduce(MRJob)?

Categories

HOME
sql-server-2008
json
ajax
jenkins-plugins
wsdl
ocaml
otrs
actionscript
phaser-framework
tizen-wearable-sdk
file-io
urlencode
triggers
subquery
currency
onsen-ui2
game-physics
qt-installer
future
line-api
multiple-monitors
sql-tuning
google-openid
google-api-java-client
ejbca
android-fragmentactivity
sonarqube-msbuild-runner
marathon
embedly
thingsboard
countif
ghost-inspector
tfs2013
non-deterministic
katharsis
branch
fetch-api
owl-api
i3
google-api-dotnet-client
powershell-remoting
css-counter
zero
flex4.5
code-composer
ical-dotnet
bing-translator-api
android-maps-v2
excel-interop
dojox.mobile
taglib
scalafx
archer
tuleap
workflow-foundation-4.5
slidesjs
tcserver
search-box
opencpu
adler32
rxvt
sql-server-administration
git-annex
foxit
string-parsing
console-redirect
servlet-3.0
hateoas
lemoon
jta
coldfusion-7
affix
zuora
abas
castle-windsor-3
sparse-file
rspec3
ticket-system
client-side-validation
pgagent
omnifocus
livechat
log4cplus
bsp
help-viewer
android-json-rpc
winrt-httpclient
facebook-chat
wic
osx-snow-leopard
goinstant
astyanax
ng-hide
dllexport
prng
vt100
bulbs
xgettext
static-variables
getusermedia
redirectstandardoutput
responsetext
maven-ant-tasks
flash-cs5.5
zookeeper
goliath
for-xml-path
nagle
pureftpd
j-interop
sitemappath
quick-search
revert
linfu
code-design
windows-controls
callgrind
data-entry
standardized

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App