THIRD_PARTY_APPS ModuleNotFoundError: No module named 'rest_framework'

来源:4-5 删改部分文件完成项目初始模板

慕姐7027134

2021-11-22

ssh://zanhu@192.168.33.61:22/usr/local/bin/python3 -u /home/zanhu/module/zanhu/manage.py runserver 192.168.33.61:8000
Unhandled exception in thread started by <function check_errors..wrapper at 0x7f7183c48b70>
Traceback (most recent call last):
File “/usr/local/python3/lib/python3.7/site-packages/django/utils/autoreload.py”, line 225, in wrapper
fn(*args, **kwargs)
File “/usr/local/python3/lib/python3.7/site-packages/django/core/management/commands/runserver.py”, line 109, in inner_run
autoreload.raise_last_exception()
File “/usr/local/python3/lib/python3.7/site-packages/django/utils/autoreload.py”, line 248, in raise_last_exception
raise _exception[1]
File “/usr/local/python3/lib/python3.7/site-packages/django/core/management/init.py”, line 337, in execute
autoreload.check_errors(django.setup)()
File “/usr/local/python3/lib/python3.7/site-packages/django/utils/autoreload.py”, line 225, in wrapper
fn(*args, **kwargs)
File “/usr/local/python3/lib/python3.7/site-packages/django/init.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “/usr/local/python3/lib/python3.7/site-packages/django/apps/registry.py”, line 89, in populate
app_config = AppConfig.create(entry)
File “/usr/local/python3/lib/python3.7/site-packages/django/apps/config.py”, line 90, in create
module = import_module(entry)
File “/usr/local/python3/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “

写回答

1回答

Jack

2021-11-23

您好,报错的意思是需要安装django-restframework,这个项目里用不上,后续会从installed_app中移除的

0
0

Django高级实战 开发企业级问答网站

融合Django高级用法/算法/设计模式/TestCase测试/云计算打造项目

900 学习 · 756 问题

查看课程