From 7243afd5b5707665b5bcef3fb59b0462543648de Mon Sep 17 00:00:00 2001
From: Kenneth Reitz <me@kennethreitz.com>
Date: Mon, 17 Dec 2012 13:49:16 -0500
Subject: [PATCH] simplify django check

---
 bin/detect | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/detect b/bin/detect
index ccfbff9e..c5db3d3d 100755
--- a/bin/detect
+++ b/bin/detect
@@ -24,6 +24,6 @@ fi
 # Otherwise, `Python`.
 
 
-SETTINGS_FILE=$(find $BUILD_DIR/. -maxdepth 3 -type f -name 'settings.py' | head -1)
+MANAGE_FILE=$(find $BUILD_DIR/. -maxdepth 3 -type f -name 'manage.py' | head -1)
 
-[ -n "$SETTINGS_FILE" ] && echo Python/Django || echo Python
+[ -n "$MANAGE_FILE" ] && grep -Fiq "django" $MANAGE_FILE && echo Python/Django || echo Python
-- 
GitLab