How to start syncdb without loading fixtures?

Is there a way to start syncdb without booting devices? ho

+5
source share
3 answers

Rename the reinforcement to something other than initial_data p>

-1
source

./manage.py help syncdb offers the following:

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

From Django docs according to source data :

If you create a fixture with a name initial_data.[xml/yaml/json], this fixture will boot every time it starts migrate. This is very convenient, but be careful: remember that the data will be updated every time it starts migrate. Therefore, do not use initial_data for the data you want to change.

+12
source

something_else.json, syncdb ( ), manage.py loaddata something_else.json

0

All Articles