newline before settings injection in case of no trailing newline

This commit is contained in:
Noah Zoschke
2011-10-04 15:54:41 -07:00
parent 5915acf4c6
commit 3f95d9b113
+1
View File
@@ -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')