Wednesday, August 27, 2014

Re: multiples database

"If you attempt to access a database that you haven't defined in your DATABASES setting, Django will raise adjango.db.utils.ConnectionDoesNotExist exception."
i need a way to access a database without defined it in the database setting

El miércoles, 27 de agosto de 2014 11:31:52 UTC-5, n lubkov escribió:

Hello, I need to figure if this is possible using django.

I have a main database (admin) and a database (clients) for each client.

The main database is just a list of clients and the name of the database of each client.

The client's database records all the data of the clients business.


I need to be able to connect dynamically to each client database within code itself, no alteration of the "settings" file.

Can this be done???

You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment