From 94b2ab43a5af5ddd63accfff2f2c8a6b286bdc0c Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.com> Date: Tue, 29 May 2012 21:08:50 -0400 Subject: [PATCH] disable injection for new applications --- bin/steps/django/init | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/steps/django/init b/bin/steps/django/init index 713dda77..ec6aaa76 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 -- GitLab