小白求助django项目出现的问题

小白求助django项目出现的问题

/usr/bin/python3.10/home/sx/Desktop/42/shunyi_git_42/meiduo_mall/manage.py runserver8000

INFOautoreload 677 Watching for file changes with StatReloader

Performingsystem checks...

Systemcheck identified no issues (0 silenced).

Exceptionin thread django-main-thread:

Traceback(most recent call last):

File"/home/sx/.local/lib/python3.10/site-packages/django/core/servers/basehttp.py",line 47, in get_internal_wsgi_application

returnimport_string(app_path)

File"/home/sx/.local/lib/python3.10/site-packages/django/utils/module_loading.py",line 30, in import_string

returncached_import(module_path, class_name)

File"/home/sx/.local/lib/python3.10/site-packages/django/utils/module_loading.py",line 15, in cached_import

module= import_module(module_path)

File"/usr/lib/python3.10/importlib/__init__.py", line 126, inimport_module

return_bootstrap._gcd_import(name[level:], package, level)

File"<frozen importlib._bootstrap>", line 1050, in_gcd_import

File"<frozen importlib._bootstrap>", line 1027, in_find_and_load

File"<frozen importlib._bootstrap>", line 1006, in_find_and_load_unlocked

File"<frozen importlib._bootstrap>", line 688, in_load_unlocked

File"<frozen importlib._bootstrap_external>", line 883,in exec_module

File"<frozen importlib._bootstrap>", line 241, in_call_with_frames_removed

File"/home/sx/Desktop/42/shunyi_git_42/meiduo_mall/meiduo_mall/wsgi.py",line 16, in <module>

application= get_wsgi_application()

File"/home/sx/.local/lib/python3.10/site-packages/django/core/wsgi.py",line 13, in get_wsgi_application

returnWSGIHandler()

File"/home/sx/.local/lib/python3.10/site-packages/django/core/handlers/wsgi.py",line 125, in __init__

self.load_middleware()

File"/home/sx/.local/lib/python3.10/site-packages/django/core/handlers/base.py",line 61, in load_middleware

mw_instance= middleware(adapted_handler)

File"/home/sx/.local/lib/python3.10/site-packages/django/contrib/sessions/middleware.py",line 15, in __init__

engine= import_module(settings.SESSION_ENGINE)

File"/usr/lib/python3.10/importlib/__init__.py", line 126, inimport_module

return_bootstrap._gcd_import(name[level:], package, level)

File"<frozen importlib._bootstrap>", line 1050, in_gcd_import

File"<frozen importlib._bootstrap>", line 1027, in_find_and_load

File"<frozen importlib._bootstrap>", line 992, in_find_and_load_unlocked

File"<frozen importlib._bootstrap>", line 241, in_call_with_frames_removed

File"<frozen importlib._bootstrap>", line 1050, in_gcd_import

File"<frozen importlib._bootstrap>", line 1027, in_find_and_load

File"<frozen importlib._bootstrap>", line 992, in_find_and_load_unlocked

File"<frozen importlib._bootstrap>", line 241, in_call_with_frames_removed

File"<frozen importlib._bootstrap>", line 1050, in_gcd_import

File"<frozen importlib._bootstrap>", line 1027, in_find_and_load

File"<frozen importlib._bootstrap>", line 1004, in_find_and_load_unlocked

ModuleNotFoundError:No module named 'django.contrib.session'

Theabove exception was the direct cause of the following exception:

Traceback(most recent call last):

File"/usr/lib/python3.10/threading.py", line 1016, in_bootstrap_inner

self.run()

File"/usr/lib/python3.10/threading.py", line 953, in run

self._target(*self._args,**self._kwargs)

File"/home/sx/.local/lib/python3.10/site-packages/django/utils/autoreload.py",line 64, in wrapper

fn(*args,**kwargs)

File"/home/sx/.local/lib/python3.10/site-packages/django/core/management/commands/runserver.py",line 157, in inner_run

handler= self.get_handler(*args, **options)

File"/home/sx/.local/lib/python3.10/site-packages/django/contrib/staticfiles/management/commands/runserver.py",line 31, in get_handler

handler= super().get_handler(*args, **options)

File"/home/sx/.local/lib/python3.10/site-packages/django/core/management/commands/runserver.py",line 78, in get_handler

returnget_internal_wsgi_application()

File"/home/sx/.local/lib/python3.10/site-packages/django/core/servers/basehttp.py",line 49, in get_internal_wsgi_application

raiseImproperlyConfigured(

django.core.exceptions.ImproperlyConfigured:WSGI application 'meiduo_mall.wsgi.application' could not be loaded;Error importing module.

Youhave 1 unapplied migration(s). Your project may not work properlyuntil you apply the migrations for app(s): auth.

Run'python manage.py migrate' to apply them.

February18, 2023 - 02:04:01

Djangoversion 4.1.7, using settings 'meiduo_mall.settings'

Startingdevelopment server at http://127.0.0.1:8000/

Quitthe server with CONTROL-C.

怎么解决求哪位大佬帮帮忙!!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值