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":
> >    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.

> --
> ()_() | 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 django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
>


-- 
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 django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to