On Tue, Mar 24, 2009 at 4:05 AM, seblb <[email protected]> wrote:
>
> Hi - is it possible to configure Django so that the admin section
> pulls details for a read/write db account/server and the main sites
> access the db via read only details?
>
> This would enable a single point of edit (master database) and multi-
> point reads (slave databases) for a DB replication setup.

This sort of thing is possible, if you know what you are doing.
However, there isn't (currently) a clean public API for this.

The ORM does have hooks to make this sort of thing possible, so if you
dig around the internals, you may be able to patch this sort of
functionality together. If you search the Django-developer archives
for discussion about multi-db support (the recent Google Summer of
Code applications have yielded a couple of revivals of that
discussion), you may be able to find enough detail to help. However,
you're going to need to get your hands dirty - if you want a clean
solution, you will need to wait a while until multi-db support is
added to trunk.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to