[Answered ]-Django script that runs when the server starts

2👍

You should take a look at this documentation page: Providing initial data for models.

You can create a JSON, XML or YAML fixture to load your data with manage.py loaddata admin command.

By the way automatic loading of data fixtures on database creation will be deprecated in favor of data migrations.

👤Luca

Leave a comment