#!/usr/bin/env bash # This script serves as the Django build step of the # [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python) # compiler. # # A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an # adapter between a Python application and Heroku's runtime. # # This script is invoked by [`bin/compile`](/). echo "-----> Injecting Django settings..." SETTINGS_FILE=$(ls **/settings.py | head -1) PROJECT=$(dirname $SETTINGS_FILE) echo "Injecting code into $SETTINGS_FILE to read from DATABASE_URL" | indent cat >>$SETTINGS_FILE <