I am following https://github.com/sabricot/django-elasticsearch-dsl to index the data inside my django-model. I have defined my documents.py file as :->
from django_elasticsearch_dsl import Document , fields 
from django_elasticsearch_dsl.registries import registry
from abc.models import *
from elasticsearch_dsl import connections, field, analyzer
connections.create_connection(hosts=['localhost'], timeout=20)
@registry.register_document
class ParkingDocument(Document):
   class Index:
    # Name of the Elasticsearch index
    name = 'parking'
    # See Elasticsearch Indices API reference for available settings
    settings = {'number_of_shards': 1,
                'number_of_replicas': 0}
   class Django:
    model = ParkingLocation
    fields = [
        'created',
        'updated',
    ]
When i run the command 
    python manage.py search_index --rebuild.
I get error as mentioned in title. Any help would be appreciated.
 
    