There is a feature in Django which is called fixtures which can be used to seed or initialize an environment. To get one from an existing environment, you can do python3 ./managepy dumpdata >> seed.json and then supply the file created to initialize.
NOTE: dumpdata includes every action a user has done when interacting with the system, e.g. as an admin created a menu item or deleted an order.
Originally posted by @sgronlund in #406 (comment)
There is a feature in Django which is called fixtures which can be used to seed or initialize an environment. To get one from an existing environment, you can do
python3 ./managepy dumpdata >> seed.jsonand then supply the file created to initialize.NOTE: dumpdata includes every action a user has done when interacting with the system, e.g. as an admin created a menu item or deleted an order.
Originally posted by @sgronlund in #406 (comment)