Commit e10cb6bf authored by Kenneth Reitz's avatar Kenneth Reitz

exit early for settings.py at root

parent 2fd6d7e1
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment