0

I have a website ready, developed with django on the backend and Javascript/Jquery/AJAX on the front end. Now, I want to convert it into a PWA on android but I want to keep some pre-poulated DB entries in the PWA and do not want to re create these entries upon deployment.

On my laptop, I have a script populate.py that I run manually after makemigrations and migrate commands so that my DB has those standard entries for any user who registers and logs in the website. I wish to keep those entries upon deployment specially when I create a PWA but I cannot find a link describing the steps to keeping the DB entries. I found this Core Data entities missing when tested on device link and this link Deploy app with pre-populated Core Data for ios but I want to do this on android and I cannot fid anything on it.

Can you suggest ?

Also, after playing with the app, how can I reset it to be fresh like be in the just after deployment state where there is no changes to the app other than the pre populated DB entries that stay.

catBuddy
  • 103
  • 1
  • 9

0 Answers0