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

Why is the group method allowed on re.match even though it can sometimes return None?
How to decode list of urls in file
numpy.savetxt() stop newline on final line
How to apply a regex to a folder full of .txt files?
ScreenManager nested inside a BoxLayout is not visible
Pass Content To Method of Another Module in Python and read Word by Word
Networking programming - client - server not in the same LAN
Python 3 - Displaying list in a particular order
How to find a variable that holding a specific value
How to inspect generators in the repl/ipython in Python3
how to correctly check for scroll end?
Pygame keypress should call function just once
How to convert character offset to Text widget's column line number position?
Python: Iterating through tuples which are related as subclassed tuples
Set variables in python list comprehension
How to link a library .a with f2py?

Categories

HOME
ssas-2012
app-inventor
jenkins-plugins
udp
tinyos
rotation
google-tag-manager
smartphone
memory-leaks
google-sheets-api
apache2
azureservicebus
i2c
google-plus
pjsip
finite-group-theory
game-physics
tee
cs-cart
maxima
riak
medium-editor
cairo
jpeg2000
cython
deb
cruisecontrol.net
epicor
nsmenuitem
iup
nmf
logarithm
kong
cep
excel-2013
metadata-extractor
pptp
fetch-api
system.data.sqlite
sharp
protobuf-net
android-vpn-service
percentage
google-guava-cache
nlb
issue-tracking
mongoexport
upsert
ttcn
sapui
rollback
butterknife
cdk
opencpu
emoticons
bettercms
autoresize
manifest.mf
c#-interactive
excon
webkit2
gradle-eclipse
group-concat
flexjson
yoothemes
handlebars.java
approval-tests
coldfusion-7
document-oriented-db
p-np
android-snackbar
urn
team-build
castle-windsor-3
rx-groovy
low-level
line-numbers
ogr2ogr
dto
ember-addon
android-looper
vertical-rhythm
trimming
haskell-platform
sametime
zend-framework-modules
ubuntu-11.10
returnurl
flexicious
hinstance
objectbrowser
webkit-transform
coff
qtembedded
paintcomponent
msbuildextensionpack
windows-live-id
associative
zend-form-element
pureftpd
drawtext
revert
external-assemblies
communicationexception
iphone-sdk-3.2
filetime
lazy-c++
soft-keyboard
writing

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