[Answer]-How to use a file to load data into database in Django

1👍

You can provide initial data to your models by using fixtures. For that, you can store all data in a file named initial_data.xml (or yaml/json] file in the fixtures directory of your app. You can see the django reference for details

Leave a comment