don't reject django apps packaged poorly

This commit is contained in:
Kenneth Reitz
2012-05-25 13:29:16 -04:00
parent 6aff0d0197
commit ffda318476
+2 -7
View File
@@ -1,18 +1,13 @@
#!/usr/bin/env bash
# Reject a Django app that appears to be packaged incorrectly.
if [ -f settings.py ]; then
echo " ! Django app must be in a package subdirectory"
exit 1
fi
SETTINGS_FILE=$(find . -maxdepth 2 -type f -name 'settings.py' | head -1)
PROJECT=$(dirname $SETTINGS_FILE)
export SETTINGS_FILE PROJECT
if [ "$DISABLE_INJECTION" ]; then
if [ ! "$DISABLE_INJECTION" ]; then
source injection
fi
source collectstatic