# 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 ]&&{echo" ! 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 ]&&{echo" ! Django app must be in a package subdirectory";exit 1;}
fi
fi
# Warn 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.";
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.";
fi
fi
...
@@ -51,18 +89,20 @@ if [ -f "lib/python2.7" ]; then
...
@@ -51,18 +89,20 @@ if [ -f "lib/python2.7" ]; then