老师,你好由于回复不能回复图片。
图片我放在这个问题的回答上面,麻烦你了。
以下是文字版:
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "D:\Programs\Python\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "D:\Programs\Python\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "D:\Programs\Python\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "D:\Programs\Python\lib\site-packages\django\core\management\commands\runserver.py", line 110, in inner_run
autoreload.raise_last_exception()
File "D:\Programs\Python\lib\site-packages\django\utils\autoreload.py", line 76, in raise_last_exception
raise _exception[1]
File "D:\Programs\Python\lib\site-packages\django\core\management\__init__.py", line 357, in execute
autoreload.check_errors(django.setup)()
File "D:\Programs\Python\lib\site-packages\django\utils\autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "D:\Programs\Python\lib\site-packages\django\__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
文字版第二段:
File "D:\Programs\Python\lib\site-packages\django\apps\registry.py", line 122, in populate
app_config.ready()
File "E:\raindrops\extra_apps\xadmin\apps.py", line 14, in ready
self.module.autodiscover()
File "E:\raindrops\extra_apps\xadmin\__init__.py", line 29, in autodiscover
from xadmin.views import register_builtin_views
File "E:\raindrops\extra_apps\xadmin\views\__init__.py", line 6, in <module>
from .edit import CreateAdminView, UpdateAdminView, ModelFormAdminView
File "E:\raindrops\extra_apps\xadmin\views\edit.py", line 5, in <module>
from crispy_forms.utils import TEMPLATE_PACK
File "D:\Programs\Python\lib\site-packages\crispy_forms\utils.py", line 11, in <module>
from django.utils.lru_cache import lru_cache
ModuleNotFoundError: No module named 'django.utils.lru_cache'