且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Django配置不正确:无法加载WSGI应用程序“ myproject.wsgi.application”;错误导入模块

更新时间:2022-05-21 21:25:43

根据我的经验,当我尝试执行 runserver 但未在setting.py中安装所有自定义的 MIDDLEWARE 时,会发生这种情况。确定并安装中间件后,错误得以解决。

From my experience this happens when I try to execute runserver but I haven't installed all custom MIDDLEWARE in setting.py. After identifying and installing the middlewares the error is resolved.