Skip to content
Snippets Groups Projects
Commit e10cb6bf authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

exit early for settings.py at root

parent 2fd6d7e1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment