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:

http://docs.djangoproject.com/en/1.3/howto/initial-data/

you're going want use post_syncdb signal, , filter/manually load fixture via underlying methods when specific apps or models created.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -