Hi All, I have a requirement, which I am trying to come up with a proof of concept using Django. The requirement is:
I upload a zip file containing - archive.zip: /db/scenario1.db /db/scenario2.db /db/scenario3.db /db/scenario4.db On the server unpack the zip file.. read the file objects extracted from the zip file (shallow) and send the list to the view for display in a list box. When the user select a pirtucular db (say /db/scenario3.db). The application should use the database to display the results present in the selected database. _______ To accomplish the above requirement I have created a model to communicate to the database which is able to talk to a single database (whose name is specified in the settings.py). To achieve the requirement mentioned about I am planning to programatically update the value of datatype: DATABASES = {'default': { 'NAME': ''}}, to the value that is selected by the user. My Question: Exactly in which layer I should place the logic of switching the databases so that Model is aware of the database being select and that it has to communicate with? Advice Please. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.