Skip to content

Commit

Permalink
better formatting in install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
crucialfelix committed Oct 8, 2013
1 parent a6e2ba7 commit 10c65a0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions example/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@ source AJAXSELECTS/bin/activate

DJANGO=$1
if [ "$DJANGO" != "" ]; then
echo "Installing Django $DJANGO"
echo "Installing Django $DJANGO:"
pip install Django==$DJANGO
else
echo "Installing latest django"
echo "Installing latest django:"
pip install django
fi

echo "Creating a sqllite database"
echo "Creating a sqllite database:"
./manage.py syncdb

if [ ! -d ./ajax_select ]; then
echo "\nSymlinking ajax_select into this app directory"
echo "\nSymlinking ajax_select into this app directory:"
ln -s ../ajax_select/ ./ajax_select
fi

echo "\ntype 'source AJAXSELECTS/bin/activate' to activate the virtualenv"
echo "\nto activate the virtualenv:\nsource AJAXSELECTS/bin/activate"

echo '\ncreate an admin account:'
echo '\nto create an admin account:'
echo './manage.py createsuperuser'

echo "\nrun: ./manage.py runserver"
echo "and visit http://127.0.0.1:8000/admin/"
echo "\ntype 'deactivate' to close the virtualenv or just close the shell"
echo "\nto run the testserver:\n./manage.py runserver"
echo "\nthen open this url:\nhttp://127.0.0.1:8000/admin/"
echo "\nto close the virtualenv or just close the shell:\ndeactivate"

exit 0

0 comments on commit 10c65a0

Please sign in to comment.