move DISABLE_INJECTION to lower level

This commit is contained in:
Kenneth Reitz
2012-05-23 13:06:38 -04:00
parent 3a239aa71a
commit 7e24f94164
3 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ pip install --use-mirrors -r requirements.txt --src ./.heroku/src | indent
#
# See [`bin/steps/django`](django.html).
if [ "$NAME" = "Python/Django" ] && ! [ "$DISABLE_INJECTION" ]; then
if [ "$NAME" = "Python/Django" ]; then
source $BIN_DIR/steps/django/init
fi
+4 -1
View File
@@ -11,5 +11,8 @@ PROJECT=$(dirname $SETTINGS_FILE)
export SETTINGS_FILE PROJECT
source injection
if [ "$DISABLE_INJECTION" ]; then
source injection
fi
source collectstatic
-6
View File
@@ -12,12 +12,6 @@
# ## Sanity Checks
#
# Reject a Django app that appears to be packaged incorrectly.
if [ -f settings.py ]; then
echo " ! Django app must be in a package subdirectory"
exit 1
fi
echo "-----> Installing dj-database-url..."
pip install --use-mirrors dj-database-url | indent