diff --git a/bin/compile b/bin/compile
index bbb0046a5ed85bd07ee9ffb4abbf8206c884d836..59d824bcabceb126bbc054fdeb87f43ffac9c16b 100755
--- a/bin/compile
+++ b/bin/compile
@@ -76,7 +76,7 @@ echo "-----> Installing dependencies using pip version $(bin/pip --version | awk
 pip install --use-mirrors -r requirements.txt | indent
 
 # Django support.
-if [ "$NAME" = "Python/Django" ]; then
+if [ "$NAME" = "Python/Django" ] && ! [ "$DISABLE_INJECTION" ]; then
   source $BIN_DIR/steps/django
 fi