Re: Changing database name on the fly

2009-12-24 Thread S.Selvam
On Thu, Dec 24, 2009 at 2:58 PM, S.Selvam wrote: > > > On Thu, Dec 24, 2009 at 2:52 PM, Raffaele Salmaso < > raffaele.salm...@gmail.com> wrote: > >> S.Selvam wrote: >> > Hi all, >> > >> > I have a a need to decide the database dynamically.On submitting the >> > form,i

Re: Changing database name on the fly

2009-12-24 Thread S.Selvam
On Thu, Dec 24, 2009 at 2:52 PM, Raffaele Salmaso < raffaele.salm...@gmail.com> wrote: > S.Selvam wrote: > > Hi all, > > > > I have a a need to decide the database dynamically.On submitting the > > form,i would check a parameter action in my views.py. > > > > if action=="dummy": > >

Re: Changing database name on the fly

2009-12-24 Thread Raffaele Salmaso
S.Selvam wrote: > Hi all, > > I have a a need to decide the database dynamically.On submitting the > form,i would check a parameter action in my views.py. > > if action=="dummy": >DATABASE_NAME=maindb_tmp > else: >DATABASE_NAME=maindb > > But that does not work,it always chooses

Changing database name on the fly

2009-12-24 Thread S.Selvam
Hi all, I have a a need to decide the database dynamically.On submitting the form,i would check a parameter action in my views.py. if action=="dummy": DATABASE_NAME=maindb_tmp else: DATABASE_NAME=maindb But that does not work,it always chooses table from maindb. How could i force it