小白求助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.
怎么解决求哪位大佬帮帮忙!!!