Re: How do I select which user/password to use for DB connection after Django app was started?
On 18 août, 08:15, Jirka Vejrazka <jirka.vejra...@gmail.com> wrote:
> I can't see how you could change Django easily. You could experiment
> with creating settings dynamically and closing DB connection just
> before user logs in (Django can open it again when it needs it) to use
> your "dynamic" DB connection,
The connections are per-process IIRC, so it wouldn't work in a
multithreaded configuration.
@OP: I don't know if what you want is even possible with Django, but
if it is it will very probably require some fairly advanced hacking
involving a custom db backend and some tricks with routers.
--
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home