Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move django pre-exit to steps/django

  • Loading branch information...
commit 15172c86b9225ddd4fd07568c386b8cf8e816f44 1 parent daa8563
@kennethreitz kennethreitz authored
Showing with 10 additions and 3 deletions.
  1. +0 −3  bin/compile
  2. +10 −0 bin/steps/django
View
3  bin/compile
@@ -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
View
10 bin/steps/django
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.