start.sh: apply migration as they work now, fix django version requirement string

This commit is contained in:
Benjamin Dauvergne 2013-09-05 17:43:54 +02:00
parent fda9426fed
commit 7728257b51
1 changed files with 2 additions and 3 deletions

View File

@ -15,11 +15,10 @@ if [ "$VIRTUAL_ENV" = "" ]; then
fi
fi
easy_install -U pip distribute
pip install -U django>1.5.0,<1.6
pip install -U 'django>1.5.0,<1.6'
pip install -U -r requirements.txt
if [ ! -f $PROJECT.db ]; then
$CTL syncdb --all --noinput
$CTL migrate --fake
$CTL syncdb --migrate --noinput
$BASE/load-base-data.sh
fi
$CTL runserver