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
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bc8e9fdb-4776-4391-96ac-d479e4c49120%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment