I have cloned the entire app
Env: WSL2 on Windows Machine
Python 3.7
installed all the dependencies
tried python manage.py runserver
application is failing with the below error.
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
Exception in thread django-main-thread:
Traceback (most recent call last):
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/django/utils/autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/django/core/management/commands/runserver.py", line 121, in inner_run
self.check_migrations()
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/django/core/management/base.py", line 486, in check_migrations
executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/django/db/migrations/executor.py", line 18, in init
self.loader = MigrationLoader(self.connection)
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/django/db/migrations/loader.py", line 53, in init
self.build_graph()
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/django/db/migrations/loader.py", line 220, in build_graph
self.applied_migrations = recorder.applied_migrations()
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 77, in applied_migrations
if self.has_table():
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/django/db/migrations/recorder.py", line 56, in has_table
tables = self.connection.introspection.table_names(cursor)
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/django/db/backends/base/introspection.py", line 52, in table_names
return get_names(cursor)
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/django/db/backends/base/introspection.py", line 47, in get_names
return sorted(ti.name for ti in self.get_table_list(cursor)
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/djongo/introspection.py", line 47, in get_table_list
for c in cursor.db_conn.list_collection_names()
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/pymongo/database.py", line 886, in list_collection_names
for result in self.list_collections(session=session, **kwargs)]
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/pymongo/database.py", line 849, in list_collections
_cmd, read_pref, session)
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/pymongo/mongo_client.py", line 1515, in _retryable_read
read_pref, session, address=address)
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/pymongo/mongo_client.py", line 1346, in _select_server
server = topology.select_server(server_selector)
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/pymongo/topology.py", line 246, in select_server
address))
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/pymongo/topology.py", line 203, in select_servers
selector, server_timeout, address)
File "/home/neo510/miniconda3/envs/hbot/lib/python3.7/site-packages/pymongo/topology.py", line 220, in _select_servers_loop
(self._error_message(selector), timeout, self.description))
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused, Timeout: 30s, Topology Description: <TopologyDescription id: 644382266aee6cb939378a16, topology_type: Single, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [Errno 111] Connection refused')>]>