(test_django) C:\test_django>python manage.py search_index --rebuild Are you sure you want to delete the 'data_discovery' indexes? [n/Y]: y Deleting index 'data_discovery' Creating index 'data_discovery' Traceback (most recent call last): File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\mysql\connector\django\base.py", line 176, in _execute_wrapper return method(query, args) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\mysql\connector\cursor.py", line 566, in execute self._handle_result(self._connection.cmd_query(stmt)) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\mysql\connector\connection.py", line 549, in cmd_query result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query)) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\mysql\connector\connection.py", line 438, in _handle_result raise errors.get_exception(packet) mysql.connector.errors.ProgrammingError: 1146 (42S02): Table 'crdc.website_data_discovery' doesn't exist During handling of the above exception, another exception occurred: Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line utility.execute() File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\core\management\__init__.py", line 375, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\core\management\base.py", line 316, in run_from_argv self.execute(*args, **cmd_options) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\core\management\base.py", line 353, in execute output = self.handle(*args, **options) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django_elasticsearch_dsl\management\commands\search_index.py", line 134, in handle self._rebuild(models, options) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django_elasticsearch_dsl\management\commands\search_index.py", line 115, in _rebuild self._populate(models, options) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django_elasticsearch_dsl\management\commands\search_index.py", line 90, in _populate qs.count(), doc._doc_type.model.__name__) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\db\models\query.py", line 383, in count return self.query.get_count(using=self.db) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\db\models\sql\query.py", line 498, in get_count number = obj.get_aggregation(using, ['__count'])['__count'] File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\db\models\sql\query.py", line 483, in get_aggregation result = compiler.execute_sql(SINGLE) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\db\models\sql\compiler.py", line 1065, in execute_sql cursor.execute(sql, params) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\db\backends\utils.py", line 100, in execute return super().execute(sql, params) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\db\backends\utils.py", line 68, in execute return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\db\backends\utils.py", line 77, in _execute_with_wrappers return executor(sql, params, many, context) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\db\backends\utils.py", line 85, in _execute return self.cursor.execute(sql, params) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\mysql\connector\django\base.py", line 226, in execute return self._execute_wrapper(self.cursor.execute, query, new_args) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\mysql\connector\django\base.py", line 179, in _execute_wrapper utils.ProgrammingError(err.msg), sys.exc_info()[2]) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\django\utils\six.py", line 683, in reraise raise value.with_traceback(tb) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\mysql\connector\django\base.py", line 176, in _execute_wrapper return method(query, args) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\mysql\connector\cursor.py", line 566, in execute self._handle_result(self._connection.cmd_query(stmt)) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\mysql\connector\connection.py", line 549, in cmd_query result = self._handle_result(self._send_cmd(ServerCmd.QUERY, query)) File "C:\Users\banduthi\AppData\Local\Continuum\anaconda3\envs\test_django\lib\site-packages\mysql\connector\connection.py", line 438, in _handle_result raise errors.get_exception(packet) django.db.utils.ProgrammingError: Table 'crdc.website_data_discovery' doesn't exist