From 5637e28894e51d4f871a93b40517e4feb8a6a693 Mon Sep 17 00:00:00 2001 From: Noah Zoschke Date: Sat, 27 Aug 2011 13:22:24 -0700 Subject: [PATCH] detect and reject a non-packaged django app --- bin/compile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/compile b/bin/compile index 76240ac..c26560d 100755 --- a/bin/compile +++ b/bin/compile @@ -19,6 +19,11 @@ function sed() { cd $BUILD_DIR +# reject a non-packaged Django app +if [ "$NAME" = "Python" ]; then + [ -f manage.py ] && [ -f settings.py ] && { echo " ! Django app be in a package subdirectory"; exit 1; } +fi + # copy artifacts out of cache if exists mkdir -p $CACHE_DIR for dir in $VIRTUALENV_DIRS; do