Search code examples
djangodjango-fixtures

Fixtures in raw Python?


Is there a way to have fixtures in raw Python to, for example, create initial data from external files? I have fixtures in JSON presently, and it might actually be more effective to migrate them to a kind of CSV file and have Python parse these and insert them. Is there a way to do this in Django?


Solution

  • Catch the post_syncdb signal and do your work in the handler.