Add travis environment variable check in settings
@@ -95,6 +95,10 @@ DATABASES = {
}
}
+if 'TRAVIS' in os.environ:
+ DATABASES['default']['USER'] = 'postgres'
+ DATABASES['default']['PASSWORD'] = ''
+
# Update database configuration with $DATABASE_URL.
import dj_database_url
db_from_env = dj_database_url.config(conn_max_age=500)
