mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
detect and reject a non-packaged django app
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user