On Sun, 2007-05-27 at 13:50 -0700, olivier wrote:
> Hi group,
> 
> I'm wondering if there a way to change the database connection upon
> login, to have the following pattern :
> 
> 1) Anonymous user is connected to my db server as 'default'. The
> database or schema for 'default' holds the tables for authentication.
> 
> 2) After authentication, username1's session is tied to a connection
> as 'username1', 'username2' is tied to a connection as 'username2',
> etc.., each user having his own database/schema.
> 
> It's probably not straightforward at all, since it raises a lot of
> issues, but I would be grateful for any hint.

No, Django is not designed like that. All connections to the database
are done as the user you specify in the settings file. You would need to
reimplement connection and cursor management inside the
django/db/backends/* if you wanted to do this.

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