Re: choose the database at runtime

2007-10-02 Thread bluesky
On 2 Ott, 03:58, "Ben Ford" <[EMAIL PROTECTED]> wrote: > I've had to do something similar to this myself... my suggestion would be to > have a look at the multiple-db-support branch, here is some code that I use > on top of that branch to connect to different databases with the same > schema:

Re: choose the database at runtime

2007-10-02 Thread bluesky
On 2 Ott, 02:34, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > Well, anything is possible, but not necessarily easy. It certainly > isn't a built-in feature - at least, not like you describe. You're right. The problem is often the time and the effort to achieve the goal. > There are

Re: choose the database at runtime

2007-10-01 Thread Ben Ford
Hi, I've had to do something similar to this myself... my suggestion would be to have a look at the multiple-db-support branch, here is some code that I use on top of that branch to connect to different databases with the same schema: This function is from the wiki article

Re: choose the database at runtime

2007-10-01 Thread Russell Keith-Magee
On 10/2/07, bluesky <[EMAIL PROTECTED]> wrote: > > So information about the connection to db should be stored on session, > not globally. Is this possible with django? Well, anything is possible, but not necessarily easy. It certainly isn't a built-in feature - at least, not like you describe.