Skip to content

Commit

Permalink
exit early for settings.py at root
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Mar 24, 2012
1 parent 2fd6d7e commit e10cb6b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bin/compile
Expand Up @@ -92,11 +92,7 @@ if [ ! -f requirements.txt ]; then
fi

# Reject a Django app that appears to be packaged incorrectly.
if [ "$NAME" = "Python" ]; then
[ -f settings.py ] && { puts-warn "Django settings must be in a package subdirectory"; exit 1; }

(grep -Fiq "django" requirements.txt) && [ -f settings.py ] && { puts-warn "Django app must be in a package subdirectory"; exit 1; }
fi
grep -Fiq "django" requirements.txt) && [ -f settings.py ] && { puts-warn "Django app must be in a package subdirectory"; exit 1; }

# Warn for a checked-in virtualenv.
if [ -d "lib" ] || [ -d "bin" ]; then
Expand Down

0 comments on commit e10cb6b

Please sign in to comment.