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之后就出现这个错误了,不知道怎么回事,希望大神解答!

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐