move django pre-exit to steps/django

This commit is contained in:
Kenneth Reitz
2012-03-23 23:42:38 -04:00
parent daa85630c7
commit 15172c86b9
2 changed files with 10 additions and 3 deletions
-3
View File
@@ -96,9 +96,6 @@ if [ ! -f requirements.txt ]; then
echo "-e ." > requirements.txt
fi
# Reject a Django app that appears to be packaged incorrectly.
grep -Fiq "django" requirements.txt) && [ -f settings.py ] && { puts-warn "Django app must be in a package subdirectory"; exit 1; }
# ### The Cache
mkdir -p $CACHE_DIR
+10
View File
@@ -9,8 +9,18 @@
#
# This script is invoked by [`bin/compile`](/).
# ## 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 "-----> Injecting Django settings..."
SETTINGS_FILE=$(find . -maxdepth 2 -type f -name 'settings.py' | head -1)
PROJECT=$(dirname $SETTINGS_FILE)