In Django, Can You Run Seed Data Without Always Generating A Migration?
I'm using Django and Python 3.7. I have created a YAML file with seed data for my db ... ./myapp/fixtures/seed_data.yaml How do I run this without generating a new migration for
Solution 1:
Migrations will only run once, as you already correctly noticed :)
However, you can always manually run a ./manage.py loaddata <fixture>
. Don't know if that's what you're looking for.
Post a Comment for "In Django, Can You Run Seed Data Without Always Generating A Migration?"