3 # We keep this in a separate script because using initial_data.xxx in django will overwrite
4 # critical data in the database when running a 'syncdb'. We'd like to keep the ability to
5 # run syncdb on updates...
7 echo WARNING
: this may overwrite some data
in the database with an initial
set of data.
8 echo 'Are you sure you want this (answer "yes" to overwrite)'
13 if [ "$R" = "yes" ]; then
14 find .
-name data.json |
xargs ..
/manage.py loaddata