Re-organise sponsor listings, adding financial sponsors per core discussion.
[pgweb.git] / pgweb / load_initial_data.sh
blobaf9a5fda99ae76c84e9734b0f5daefe8c6832fb5
1 #!/bin/sh
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)'
9 read R
11 cd $(dirname $0)
13 if [ "$R" = "yes" ]; then
14 find . -name data.json | xargs ../manage.py loaddata