diff --git a/bin/steps/django/init b/bin/steps/django/init index 383ee1621e06af37db1f2f1c4d775ae13ccd49c6..713dda77023dced71c4f1e1fbc1f4727587dd03c 100755 --- a/bin/steps/django/init +++ b/bin/steps/django/init @@ -1,18 +1,13 @@ #!/usr/bin/env bash -# 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 - SETTINGS_FILE=$(find . -maxdepth 2 -type f -name 'settings.py' | head -1) PROJECT=$(dirname $SETTINGS_FILE) export SETTINGS_FILE PROJECT -if [ "$DISABLE_INJECTION" ]; then +if [ ! "$DISABLE_INJECTION" ]; then source injection fi + source collectstatic \ No newline at end of file