Sunday, November 28, 2010

Re: Accessing multiple databases from a single django app?

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 <tevans.uk@googlemail.com> wrote:
On Fri, Nov 26, 2010 at 5:28 PM, Roy Smith <roy@panix.com> 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 read-write, and will be the one which manages the
> site (account creation, user preferences, etc).  Is there a way to do
> this?
>

http://docs.djangoproject.com/en/1.2/topics/db/multi-db/ ?

HTH

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.




--
Girish M S

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment