On Thu, Dec 24, 2009 at 2:58 PM, S.Selvam <[email protected]> wrote:
> > > On Thu, Dec 24, 2009 at 2:52 PM, Raffaele Salmaso < > [email protected]> 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": >> > DATABASE_NAME=maindb_tmp >> > else: >> > DATABASE_NAME=maindb >> > >> > But that does not work,it always chooses table from maindb. >> > >> > How could i force it to choose maindb_tmp ?, >> Use django trunk from svn, or wait for django 1.2, which has multi-db >> support >> >> http://docs.djangoproject.com/en/dev/topics/db/multi-db/#topics-db-multi-db >> >> > Thanks a lot !,i will dig it further. > It worked perfectly, thanks for pointing it out ! > -- >> >> ()_() | That said, I didn't actually _test_ my patch. | +---- >> (o.o) | That's what users are for! | +---+ >> 'm m' | (Linus Torvalds) | O | >> (___) | raffaele dot salmaso at gmail dot com | >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<django-users%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> >> > > > -- > Regards, > S.Selvam > -- Regards, S.Selvam -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

