小编Sat*_*ngh的帖子

启动服务器时Django中的_DeadlockError

很多时候我在启动python服务器时遇到此错误。当我更改任何文件并且服务器再次启动时,也会发生这种情况。

我尝试删除环境并重新创建环境,但是仍然存在相同的错误。

Linux上的Python 3.5.2(默认值,2018年11月12日,13:43:14)[GCC 5.4.0 20160609]

的Django:2.2.1

/home/satyam/Code/myproject/myproject_apps/invoice/services/excel_service.py changed, reloading.
Watching for file changes with StatReloader
Performing system checks...

Exception in thread django-main-thread:
Traceback (most recent call last):
  File "/home/satyam/Code/environments/ebapps/lib/python3.5/site-packages/django/template/utils.py", line 66, in __getitem__
    return self._engines[alias]
KeyError: 'django'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/satyam/Code/environments/ebapps/lib/python3.5/site-packages/django/utils/autoreload.py", line 54, in wrapper
    fn(*args, **kwargs)
  File "/home/satyam/Code/environments/ebapps/lib/python3.5/site-packages/django/core/management/commands/runserver.py", line 117, in …
Run Code Online (Sandbox Code Playgroud)

python django python-3.x

8
推荐指数
1
解决办法
739
查看次数

标签 统计

django ×1

python ×1

python-3.x ×1