django网站部署到iis的问题

  • 问题:自己弄了一个django小说网站,能够运行并实现功能,但是最近我以一个app的形式加了个评论系统,外加完善了一下用户管理系统,在本地服务器上能够完整的运行,但是一到iis上就老报错,错误代码如下:
Error occurred while reading WSGI handler:

Traceback (most recent call last):
  File "c:\web_station\coread\wfastcgi.py", line 791, in main
    env, handler = read_wsgi_handler(response.physical_path)
  File "c:\web_station\coread\wfastcgi.py", line 633, in read_wsgi_handler
    handler = get_wsgi_handler(os.getenv("WSGI_HANDLER"))
  File "c:\web_station\coread\wfastcgi.py", line 605, in get_wsgi_handler
    handler = handler()
  File "C:\Python\Python37\lib\site-packages\django\core\wsgi.py", line 12, in get_wsgi_application
    django.setup(set_prefix=False)
  File "C:\Python\Python37\lib\site-packages\django\__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "C:\Python\Python37\lib\site-packages\django\apps\registry.py", line 83, in populate
    raise RuntimeError("populate() isn't reentrant")
RuntimeError: populate() isn't reentrant


StdOut: C:\web_station\coread


StdErr: 
  • 之前的网站能够完整的运行,说明部署参数设置都没问题,也没有改动,就是加了个app之后就出现这个错误了,不知道怎么回事,希望大神解答!

https://www.jianshu.com/p/ad4448e879cb

怎么解决的楼主,我也是这个问题