Re: How do I select which user/password to use for DB connection after Django app was started?

2011-08-18 Thread michael kapelko
I think about 50 users, but Django for each sounds too much. -- 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+unsubscr

Re: How do I select which user/password to use for DB connection after Django app was started?

2011-08-18 Thread michael kapelko
I think I have to emulate Delphi app with a server process, and make Django interact with the process. The process can login to DB directly. That's not so easy, but I guess that's the only option here - move Delphi app from client machine to server one. -- You received this message because you ar

Re: How do I select which user/password to use for DB connection after Django app was started?

2011-08-17 Thread michael kapelko
I.e. I want to set up database connection after Django app has started *when I want it*. Is there a way to do it? -- 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

Re: How do I select which user/password to use for DB connection after Django app was started?

2011-08-17 Thread michael kapelko
Delphi application works with server based scripts over TCP. It can be replaced with web interface. I don't have several databases, I will use single one, it's username/password that I want to use for everything Django does. So essentially I want to only change 'USER', 'PASSWORD' in settings.py af

Re: How do I select which user/password to use for DB connection after Django app was started?

2011-08-17 Thread michael kapelko
> I don't think the OP want to select which db is used, but to connect > to the db with the logged in user's credentials. Exactly. > DB authentication and user authentication are separate things. Users > authenticate against Django. Full stop. Django > accesses the database using > login data yo

Re: How do I select which user/password to use for DB connection after Django app was started?

2011-08-17 Thread michael kapelko
Still, how do i make all my models use the connection info logged in user provided? -- 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

How do I select which user/password to use for DB connection after Django app was started?

2011-08-17 Thread michael kapelko
Hi. I want to have a login form, and connect to DB with the provided username/password. Django's settings.py specifies username/password/DB to use for the whole Django app. I want to defer the DB connection when a user actually logins, not when Django starts up. Is there a way to do it? Thanks. --