Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how do run syncdb without loading fixtures?

is there a way to run syncdb without loading fixtures? xo

like image 716
mossplix Avatar asked Nov 17 '10 07:11

mossplix


1 Answers

./manage.py help syncdb suggests the following:

./manage.py syncdb --no-initial-data

From Django docs on initial data:

If you create a fixture named initial_data.[xml/yaml/json], that fixture will be loaded every time you run migrate. This is extremely convenient, but be careful: remember that the data will be refreshed every time you run migrate. So don’t use initial_data for data you’ll want to edit.

like image 176
hannson Avatar answered Oct 16 '22 23:10

hannson