From cca0cd9bb01cf0390b0bd8f904f25afaa74895bf Mon Sep 17 00:00:00 2001 From: Helge Dzierzon Date: Tue, 15 Mar 2016 21:26:45 +1300 Subject: [PATCH] - Changed DB migration from South to makemigration - Shebang sh does not always like the command "source". Changed it to bash --- example/install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/example/install.sh b/example/install.sh index 552830d5d4..0e99fd09fa 100755 --- a/example/install.sh +++ b/example/install.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # break on any error set -e @@ -22,7 +22,11 @@ if [ ! -d ./ajax_select ]; then fi echo "Creating a sqllite database:" -./manage.py syncdb +./manage.py migrate + +echo "Create example migrations" +./manage.py makemigrations example +./manage.py migrate example echo "\nto activate the virtualenv:\nsource AJAXSELECTS/bin/activate"