python - Execute Django fixtures on table creation -
is there way execute django fixture once - when appropriate table created? have initial data should put in app tables, once tables there, don't want every ./manage.py syncdb refresh data. according django docs seems can done fixtures in sql format , not json / yaml:
you're going want use post_syncdb signal, , filter/manually load fixture via underlying methods when specific apps or models created.
Comments
Post a Comment