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