# Reject a Django app that appears to be packaged incorrectly.
# Reject a Django app that appears to be packaged incorrectly.
if["$NAME"="Python"];then
if["$NAME"="Python"];then
[-f settings.py ]&&{echo" ! Django settings must be in a package subdirectory";exit 1;}
[-f settings.py ]&&{puts-warn "Django settings must be in a package subdirectory";exit 1;}
(grep-Fiq"django" requirements.txt)&&[-f settings.py ]&&{echo" ! Django app 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
fi
# Warn for a checked-in virtualenv.
# Warn for a checked-in virtualenv.
if[-d"lib"]||[-d"bin"];then
if[-d"lib"]||[-d"bin"];then
echo" ! You have a virtualenv checked in. You should ignore the appropriate paths in your repo. See http://devcenter.heroku.com/articles/gitignore for more info.";
puts-warn "You have a virtualenv checked in. You should ignore the appropriate paths in your repo. See http://devcenter.heroku.com/articles/gitignore for more info.";