mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
newline before settings injection in case of no trailing newline
This commit is contained in:
@@ -42,6 +42,7 @@ if [ "$NAME" = "Python/Django" ]; then
|
||||
echo " Injecting code into $SETTINGS_FILE to read from DATABASE_URL"
|
||||
|
||||
cat >>$SETTINGS_FILE <<EOF
|
||||
|
||||
import os, sys, urlparse
|
||||
urlparse.uses_netloc.append('postgres')
|
||||
urlparse.uses_netloc.append('mysql')
|
||||
|
||||
Reference in New Issue
Block a user