I want to create a website where users can log in and create their own database (and also be able to manipulate them). These databases will be very small, and are ment to be used for testing mostly. Reading the suggested solutions here on SO it seems I have a few options:
- dynamically add database to settings.py using a pre-defined functionality (as suggested here). I find this to be a very bad idea since it seems like a hack and exposes your own settings.py file.
- store SQlite files in media, and connect to them using django.db.connections. This seems like a reasonable solution, though I have no idea how to execute it.
- don't use an actual database but an XML or some other format for storing information, which will probably cost me in efficiency
- my own idea, which might be crazy stupid - store SQlite files as blobs inside MySQL database.
The end-goal is to allow the users to create django models on the website and then perform queries on them (it's a learning website). Any ideas?