Skip to content
Snippets Groups Projects
Commit 7e24f941 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

move DISABLE_INJECTION to lower level

parent 3a239aa7
No related branches found
No related tags found
No related merge requests found
......@@ -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
\ No newline at end of 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment