mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
move DISABLE_INJECTION to lower level
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -11,5 +11,8 @@ PROJECT=$(dirname $SETTINGS_FILE)
|
||||
|
||||
export SETTINGS_FILE PROJECT
|
||||
|
||||
source injection
|
||||
if [ "$DISABLE_INJECTION" ]; then
|
||||
source injection
|
||||
fi
|
||||
|
||||
source collectstatic
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user