Re: Accessing multiple databases from a single django app?

2010-11-28 Thread girish shabadimath
database router is the solution, check this out http://docs.djangoproject.com/en/1.2/topics/db/multi-db/#database-routers On Sat, Nov 27, 2010 at 12:34 AM, Tom Evans wrote: > On Fri, Nov 26,

Re: Accessing multiple databases from a single django app?

2010-11-26 Thread Tom Evans
On Fri, Nov 26, 2010 at 5:28 PM, Roy Smith wrote: > I want my application to be able to access two different mysql > databases (with different credentials, running on two different > servers).  One is a large data collection which I'll be accessing read- > only.  The other is

Accessing multiple databases from a single django app?

2010-11-26 Thread Roy Smith
I want my application to be able to access two different mysql databases (with different credentials, running on two different servers). One is a large data collection which I'll be accessing read- only. The other is read-write, and will be the one which manages the site (account creation, user

Re: Accessing Multiple Databases.

2008-12-16 Thread Tom Eastman
Malcolm Tredinnick wrote: > In hindsight, I probably wasn't clear as to why I'm suggesting this: > there are a lot of places where Django would like to write to your > database (sessions, auth lookups, ...). You can configure around and > away from each of those in turn, but, if this were me,

Re: Accessing Multiple Databases.

2008-12-15 Thread Malcolm Tredinnick
On Tue, 2008-12-16 at 14:28 +1100, Malcolm Tredinnick wrote: > > On Tue, 2008-12-16 at 15:25 +1300, Tom Eastman wrote: > > Hey Guys, > > > > I'm about to start developing a web front-end for a large database being > > developed by a colleague. The web front-end is only going to be > >

Re: Accessing Multiple Databases.

2008-12-15 Thread Malcolm Tredinnick
database is your Django-specific one and then accesses to the other database is done via a custom manager. There are a few blog posts around about accessing multiple databases in ways that work reliably, until such time as Django ships with it by default. I'll just point you to this one, since I ha

Accessing Multiple Databases.

2008-12-15 Thread Tom Eastman
Hey Guys, I'm about to start developing a web front-end for a large database being developed by a colleague. The web front-end is only going to be accessing a sub-set of the database, and mostly via 'views' that will be specific to the requirements of the web frontend. I want to use Django,

Accessing Multiple Databases

2008-12-15 Thread Tom Eastman
Hey Guys, I'm about to start developing a web front-end for a large database being developed by a colleague. The web front-end is only going to be accessing a sub-set of the database, and mostly via 'views' that will be specific to the requirements of the web frontend. I want to use Django,

Re: Accessing multiple databases

2008-04-15 Thread [EMAIL PROTECTED]
I've been using the multi db branch of Django successfully for three years on one of my projects...works great On Apr 15, 8:03 pm, RaviKondamuru <[EMAIL PROTECTED]> wrote: > Hi, > I am intending to use two different databases. Essentially retrieve > some data from a remote database and have some

Re: Accessing multiple databases

2008-04-15 Thread Daryl Spitzer
I'm working on ticket #1142 (http://code.djangoproject.com/ticket/1142): "Support for multiple database connections." I'm putting together on a prototype which I'll attach to the ticket (as a patch with some rough documentation) that you could test. I'm going to be careful not to promise when

Accessing multiple databases

2008-04-15 Thread RaviKondamuru
Hi, I am intending to use two different databases. Essentially retrieve some data from a remote database and have some data in the local database. Is such configuration supported in Django? Any pointers to such configuration possibility? thanks, Ravi.

Re: Accessing Multiple Databases

2007-12-13 Thread birkin
Derek, > ...If not, what should I be doing? For one of my projects I import data from a non-django-controlled database using the MySQLdb python library, populate a django model object and save it (to my app's django-controlled database table). Works smoothly.

Re: Accessing Multiple Databases

2007-12-12 Thread Ben Ford
Hi folks, I was going to keep quiet on this until I was a bit further along... I've just started work on re-hashing multiple-db support to make it a bit more flexible. The existing code is quite hard to update with trunk as it makes a lot of changes to django's core codebase. I've also found it a

Re: Accessing Multiple Databases

2007-12-12 Thread Russell Keith-Magee
On Dec 13, 2007 12:25 AM, Derek Steinkamp <[EMAIL PROTECTED]> wrote: > > As an aside, I think it is a real showstopper to not include this > feature in the main trunk... I can't believe the triage stage on the > feature request was recently changed to "Someday/Maybe". To me it seems > obvious

Re: Accessing Multiple Databases

2007-12-12 Thread Derek Steinkamp
Thanks for the link, it is very helpful. I see the last attachments are the docs committed by you -- I'll be giving those a read here shortly. As an aside, I think it is a real showstopper to not include this feature in the main trunk... I can't believe the triage stage on the feature request

Re: Accessing Multiple Databases

2007-12-11 Thread [EMAIL PROTECTED]
There is a Multiple Database Branch which is not under active development...and doesn't have some of the new stuff in the trunk...but I'm using it in one of my projects...works pretty good for the most part. http://code.djangoproject.com/wiki/MultipleDatabaseSupport On Dec 11, 2:48 pm, Derek

Accessing Multiple Databases

2007-12-11 Thread Derek Steinkamp
I read through all the relevant documentation but I couldn't find any info on an issue I am about to face: accessing multiple tables in different databases with Django. Here's a quick example: My Django app (MyApp) has r/w access to the MyApp database on MySQLserver1, and all of MyApp models