DjangoでアプリをHerokuにデプロイを行っていてWebサーバ起動を行おうとしたところ不明なエラーが出たため質問します。
どのような対処があるでしょうか。
エラー時プロンプト
Watching for file changes with StatReloader Performing system checks... Exception in thread django-main-thread: Traceback (most recent call last): File "/Users/user/opt/anaconda3/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/Users/user/opt/anaconda3/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/Users/user/djnproject/myvenv/lib/python3.8/site-packages/django/utils/autoreload.py", line 54, in wrapper fn(*args, **kwargs) File "/Users/user/djnproject/myvenv/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 117, in inner_run self.check(display_num_errors=True) File "/Users/user/djnproject/myvenv/lib/python3.8/site-packages/django/core/management/base.py", line 436, in check raise SystemCheckError(msg) django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues: ERRORS: ?: (admin.E410) 'django.contrib.sessions.middleware.SessionMiddleware' must be in MIDDLEWARE in order to use the admin application.
######試したこと
・ settings
内の MIDDLEWARE=[ django.contrib.sessions.middleware.SessionMiddleware ]
のコメントアウト
・ 仮想環境 virtualenv の再起動
あなたの回答
tips
プレビュー