multiples database

19 views
Skip to first unread message

n lubkov

unread,
Aug 27, 2014, 12:31:52 PM8/27/14
to django...@googlegroups.com

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???

Larry Martell

unread,
Aug 27, 2014, 12:45:08 PM8/27/14
to django...@googlegroups.com

n lubkov

unread,
Aug 27, 2014, 2:43:30 PM8/27/14
to django...@googlegroups.com
but 
"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
Reply all
Reply to author
Forward
0 new messages