On Mon, 2009-03-23 at 12:05 -0700, seblb 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 particular situation is easy. You run two different versions of the
site (i.e. using two settings files). The people using the admin use one
particular URL entry point that uses a settings file which has
DATABASE_USER set to somebody with update and insert permissions and
with the admin app installed. The public-access version uses a different
settings file with a read-only DATABASE_USER and doesn't have the admin
app in the INSTALLED_APP list.

Regards,
Malcolm



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