mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
exit early for settings.py at root
This commit is contained in:
+1
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user