From ffda3184760b475fa0928e6e8335c5046bd094ed Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.com> Date: Fri, 25 May 2012 13:29:16 -0400 Subject: [PATCH] don't reject django apps packaged poorly --- bin/steps/django/init | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bin/steps/django/init b/bin/steps/django/init index 383ee162..713dda77 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 -- GitLab