From aad72f8e810b7e435a4ddc95df78e1852c53e833 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 27 Jun 2012 14:13:35 -0700 Subject: [PATCH] legacy --- bin/steps/django/injection | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/steps/django/injection b/bin/steps/django/injection index dbfb56c..7daba45 100755 --- a/bin/steps/django/injection +++ b/bin/steps/django/injection @@ -18,16 +18,15 @@ indent() { [ $(uname) == "Darwin" ] && sed -l "$RE" || sed -u "$RE" } +echo "-----> Injecting legacy Django settings..." + echo "-----> Installing dj-database-url..." pip install --use-mirrors 'dj-database-url>=0.2.0' | indent -echo "-----> Injecting Django settings..." - SETTINGS_FILE=$(find . -maxdepth 2 -type f -name 'settings.py' | head -1) PROJECT=$(dirname $SETTINGS_FILE) -echo "Injecting code into $SETTINGS_FILE to read from DATABASE_URL" | indent - +echo "Injecting code into $SETTINGS_FILE to read from DATABASE_URL" | indent" cat >>$SETTINGS_FILE <