Django ImproperlyConfigured: WSGI application 'myproject.wsgi.application' could not be loaded; Error importing module

后端 未结 8 1405
生来不讨喜
生来不讨喜 2021-02-08 01:04

I have an almost fresh install of django and when I try to python manage.py runserver.It is is giving me this error:

ImproperlyConfigured: WSGI applicati

8条回答
  •  春和景丽
    2021-02-08 02:02

    One of the reason for this issue is if you have a middleware added into django middleware list in settings.py but haven't installed it yet.

    In my case I added corsheaders.middleware.CorsMiddleware which wasn't installed.I installed it using pip install django-cors-headers and that did the trick.

提交回复
热议问题