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 ...@@ -183,7 +183,7 @@ pip install --use-mirrors -r requirements.txt --src ./.heroku/src | indent
# #
# See [`bin/steps/django`](django.html). # See [`bin/steps/django`](django.html).
if [ "$NAME" = "Python/Django" ] && ! [ "$DISABLE_INJECTION" ]; then if [ "$NAME" = "Python/Django" ]; then
source $BIN_DIR/steps/django/init source $BIN_DIR/steps/django/init
fi fi
......
...@@ -11,5 +11,8 @@ PROJECT=$(dirname $SETTINGS_FILE) ...@@ -11,5 +11,8 @@ PROJECT=$(dirname $SETTINGS_FILE)
export SETTINGS_FILE PROJECT export SETTINGS_FILE PROJECT
source injection if [ "$DISABLE_INJECTION" ]; then
source injection
fi
source collectstatic source collectstatic
\ No newline at end of file
...@@ -12,12 +12,6 @@ ...@@ -12,12 +12,6 @@
# ## Sanity Checks # ## 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..." echo "-----> Installing dj-database-url..."
pip install --use-mirrors dj-database-url | indent 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