Here is log : 2022-11-02 16:19:23+0530 [-] Log opened. 2022-11-02 16:19:23+0530 [-] kws connected..................................... 2022-11-02 16:19:23+0530 [-] Warning: primary log target selected twice at - previously selected at . Remove one of the calls to beginLoggingTo. 2022-11-02 16:19:23+0530 [-] HTTPFactory starting on 8000 2022-11-02 16:19:23+0530 [-] Starting factory 2022-11-02 16:19:23+0530 [-] Exception in thread django-main-thread: 2022-11-02 16:19:23+0530 [-] Traceback (most recent call last): 2022-11-02 16:19:23+0530 [-] File "C:\Users\Python\AppData\Local\Programs\Python\Python38\lib\threading.py", line 932, in _bootstrap_inner 2022-11-02 16:19:23+0530 [-] self.run() 2022-11-02 16:19:23+0530 [-] File "C:\Users\Python\AppData\Local\Programs\Python\Python38\lib\threading.py", line 870, in run 2022-11-02 16:19:23+0530 [-] self._target(*self._args, **self._kwargs) 2022-11-02 16:19:23+0530 [-] File "C:\Users\Python\AppData\Local\Programs\Python\Python38\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper 2022-11-02 16:19:23+0530 [-] fn(*args, **kwargs) 2022-11-02 16:19:23+0530 [-] File "C:\Users\Python\AppData\Local\Programs\Python\Python38\lib\site-packages\channels\management\commands\runserver.py", line 106, in inner_run 2022-11-02 16:19:23+0530 [-] self.server_cls( 2022-11-02 16:19:23+0530 [-] File "C:\Users\Python\AppData\Local\Programs\Python\Python38\lib\site-packages\daphne\server.py", line 143, in run 2022-11-02 16:19:23+0530 [-] reactor.run(installSignalHandlers=self.signal_handlers) 2022-11-02 16:19:23+0530 [-] File "C:\Users\Python\AppData\Local\Programs\Python\Python38\lib\site-packages\twisted\internet\asyncioreactor.py", line 255, in run 2022-11-02 16:19:23+0530 [-] self._asyncioEventloop.run_forever() 2022-11-02 16:19:23+0530 [-] File "C:\Users\Python\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 560, in run_forever 2022-11-02 16:19:23+0530 [-] self._check_running() 2022-11-02 16:19:23+0530 [-] File "C:\Users\Python\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 552, in _check_running 2022-11-02 16:19:23+0530 [-] raise RuntimeError('This event loop is already running') 2022-11-02 16:19:23+0530 [-] RuntimeError: This event loop is already running