Files
heroku-buildpack-python/bin/steps/django/init
T
Kenneth Reitz efebff4ce8 inverse test
2012-05-29 21:11:44 -04:00

17 lines
370 B
Bash
Executable File

#!/usr/bin/env bash
SETTINGS_FILE=$(find . -maxdepth 3 -type f -name 'settings.py' | head -1)
PROJECT=$(dirname $SETTINGS_FILE)
# 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