search.py from elasticsearch_dsl import DocType, Text, Date, Search In new versions of elasticsearch_dsl instead of **DocType**, **Document** is supported.
search.py
from elasticsearch_dsl import DocType, Text, Date, Search
In new versions of elasticsearch_dsl instead of DocType, Document is supported.