What you can try out is the following approach (a variation of which I use in order to customize the data being presented based on the identity of the currently logged in user).
1. Create a middleware that pushes the relevant info from the request into a thread local storage. 2. Create a custom manager, that looks up this info and uses it to create a custom connection to the DB. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---