Commit ffda3184 authored by Kenneth Reitz's avatar Kenneth Reitz

don't reject django apps packaged poorly

parent 6aff0d01
#!/usr/bin/env bash #!/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) SETTINGS_FILE=$(find . -maxdepth 2 -type f -name 'settings.py' | head -1)
PROJECT=$(dirname $SETTINGS_FILE) PROJECT=$(dirname $SETTINGS_FILE)
export SETTINGS_FILE PROJECT export SETTINGS_FILE PROJECT
if [ "$DISABLE_INJECTION" ]; then if [ ! "$DISABLE_INJECTION" ]; then
source injection source injection
fi fi
source collectstatic source collectstatic
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment