django dispatch

This commit is contained in:
Kenneth Reitz
2012-05-15 15:01:09 -07:00
parent 0e1ae7a798
commit 3a239aa71a
+13
View File
@@ -1,2 +1,15 @@
#!/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
source injection
source collectstatic