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

后端 未结 8 1362
生来不讨喜
生来不讨喜 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:10

    I encountered the same problem because I added the debug_toolbar Middleware to my settings.py

    'debug_toolbar.middleware.DebugToolbarMiddleware',
    

    I solved the problem by removing the debug_toolbar Middleware. I also had to remove debug_toolbar from my INSTALLED APPS.

提交回复
热议问题