SyllabiShare / syllabi-share

A app to help students share syllabi to assist in the college course selection process
GNU General Public License v3.0
9 stars 3 forks source link

Make a submission backup #46

Closed verndrade closed 4 years ago

verndrade commented 4 years ago

Write an admin service to export the submissions metadata to a programmatic form (like JSON) which can re-make the submissions in case of deletion or corruption

verndrade commented 4 years ago

current workaround: go to heroku dashboard console python manage.py shell >> dump.txt import models and iterate through model.objects.all() and print them (they will go into dump.txt) after all are printed exit the shell clone a git repo which you can add the dump file to add dump.txt to the repo, commit, and push access the repo in github to see the dump

Probably could have everything be downloaded through a button on the admin console, but I wanted to find the most convoluted way of doing it 🤡

50Wliu commented 4 years ago

@verndrade in the future: python manage.py dumpdata >> db.json