diff --git a/bin/steps/django/init b/bin/steps/django/init index 713dda77023dced71c4f1e1fbc1f4727587dd03c..ec6aaa765f678ddcdd71154eeeab7380f3bd5cbe 100755 --- a/bin/steps/django/init +++ b/bin/steps/django/init @@ -1,13 +1,17 @@ #!/usr/bin/env bash -SETTINGS_FILE=$(find . -maxdepth 2 -type f -name 'settings.py' | head -1) +SETTINGS_FILE=$(find . -maxdepth 3 -type f -name 'settings.py' | head -1) PROJECT=$(dirname $SETTINGS_FILE) -export SETTINGS_FILE PROJECT +# Disable injection for new applications. +if [ ! -f .heroku/injection_disabled ]; then + DISABLE_INJECTION=1 +fi + +export SETTINGS_FILE PROJECT DISABLE_INJECTION if [ ! "$DISABLE_INJECTION" ]; then source injection fi - source collectstatic \ No newline at end of file