dennybiasiolli/gestione-donatori

add database export in JSON or SQL format

Opened this issue · 3 comments

Consider one of these options:

  • JSON export from a django view. Limit only to superusers
  • python manage.py dumpdata

To export the entire database to a file called database.json, you would use the following command:

python manage.py dumpdata --output database.json

hey, @dennybiasiolli Is your problem with something else, or is the answer itself?

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