Skip to content
Snippets Groups Projects
Commit aad72f8e authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

legacy

parent 72295bf1
No related branches found
No related tags found
No related merge requests found
......@@ -18,16 +18,15 @@ indent() {
[ $(uname) == "Darwin" ] && sed -l "$RE" || sed -u "$RE"
}
echo "-----> Injecting legacy Django settings..."
echo "-----> Installing dj-database-url..."
pip install --use-mirrors 'dj-database-url>=0.2.0' | indent
echo "-----> Injecting Django settings..."
SETTINGS_FILE=$(find . -maxdepth 2 -type f -name 'settings.py' | head -1)
PROJECT=$(dirname $SETTINGS_FILE)
echo "Injecting code into $SETTINGS_FILE to read from DATABASE_URL" | indent
echo "Injecting code into $SETTINGS_FILE to read from DATABASE_URL" | indent"
cat >>$SETTINGS_FILE <<EOF
import dj_database_url
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment