Commit cf36e8c7 authored by Kenneth Reitz's avatar Kenneth Reitz

dj-database-url

parent 233df5d5
......@@ -18,8 +18,10 @@ if [ -f settings.py ]; then
exit 1
fi
echo "-----> Injecting Django settings..."
echo "-----> Installing dj-database-url..."
pip install --use-mirrors dj-database-url | indent
echo "-----> Injecting Django settings..."
SETTINGS_FILE=$(find . -maxdepth 2 -type f -name 'settings.py' | head -1)
PROJECT=$(dirname $SETTINGS_FILE)
......@@ -30,5 +32,9 @@ cat >>$SETTINGS_FILE <<EOF
import dj_database_url
if 'DATABASES' not in locals():
DATABASES = {}
DATABASES = dj_database_url.config(DATABASES)
EOF
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