add database export in JSON or SQL format
Opened this issue · 3 comments
dennybiasiolli commented
Consider one of these options:
- JSON export from a django view. Limit only to superusers
python manage.py dumpdata
kiranrokkam09 commented
To export the entire database to a file called database.json, you would use the following command:
python manage.py dumpdata --output database.json
kiranrokkam09 commented
hey, @dennybiasiolli Is your problem with something else, or is the answer itself?
dennybiasiolli commented
Well, to be honest we'd like to allow the export from the web interface, something that runs the command you suggested (maybe only user related data) and starts a download in the browser. That's our issue