# Changing ES Scheme to http

**URL:** <https://discuss.elastic.co/t/changing-es-scheme-to-http/336839>\
**Category:** Elasticsearch\
**Created:** [June 25, 2023, 3:41pm UTC](https://discuss.elastic.co/t/changing-es-scheme-to-http/336839 "2023-06-25T15:41:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geek2.0](https://avatars.discourse-cdn.com/v4/letter/g/ce73a5/32.png) [@Geek2.0](https://discuss.elastic.co/u/Geek2.0)\
**Post date:** [June 25, 2023, 3:41pm UTC](https://discuss.elastic.co/t/changing-es-scheme-to-http/336839/1 "2023-06-25T15:41:32Z")

</div>

Hi Community,

I am working on Arches project which uses Elasticsearch as its search engine.  
In Arches Documentation, it is mentioned to add the following line to the settings.py in my project's directory:

```auto
ELASTICSEARCH_HOSTS = [{“scheme”: “http”, “host”: “localhost”, “port”: ELASTICSEARCH_HTTP_PORT}]

```

This overwrites the default `ELASTICSEARCH_HOSTS` variable, which has the scheme set to `https`.

However, I get the following error:

```auto
File "/root/ArchesProject/my_project1/my_project1/settings.py", line 366
    ELASTICSEARCH_HOSTS = [{“scheme”: “http”, “host”: “localhost”, “port”: ELASTICSEARCH_HTTP_PORT}]
                                   ^
SyntaxError: invalid character in identifier

```

Any idea on how to solve this issue?  
Your help is much appreciated 🙂

---

<div class="post-metadata">

**Author:** ![eMitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emitch/32/93607_2.png) [@eMitch](https://discuss.elastic.co/u/eMitch)\
**Post date:** [June 25, 2023, 8:24pm UTC](https://discuss.elastic.co/t/changing-es-scheme-to-http/336839/2 "2023-06-25T20:24:20Z")

</div>

I don't know much about Arches but those double quotes look like they might be a special character that's not recognized. Can you copy and paste it as plain text in an editor and verify? You may want to retype it and try again.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 23, 2023, 8:24pm UTC](https://discuss.elastic.co/t/changing-es-scheme-to-http/336839/3 "2023-07-23T20:24:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
