In Django I can connect
elastic_search = Elasticsearch([\'http://elastic:elastic@127.0.0.1:9200/\'], verify_certs=True) if elastic_search.ping(): # No problem