[英]Error occurred while reading WSGI handler: Django and React app deployment iis server
我正在尝试使用 Django 和 React 在 IIS 服务器上发布 web 应用程序。 后端正在工作,但是当我运行浏览器进行反应时,我得到以下错误。
为什么fronted会出现wsgi错误
Error occurred while reading WSGI handler:
Traceback (most recent call last):
File "C:\python\lib\logging\config.py", line 565, in configure
handler = self.configure_handler(handlers[name])
File "C:\python\lib\logging\config.py", line 746, in configure_handler
result = factory(**kwargs)
File "C:\python\lib\logging\__init__.py", line 1169, in __init__
StreamHandler.__init__(self, self._open())
File "C:\python\lib\logging\__init__.py", line 1201, in _open
return open_func(self.baseFilename, self.mode,
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\ui\\logs\\app_2022_09_27.log'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\python\lib\site-packages\wfastcgi.py", line 791, in main
env, handler = read_wsgi_handler(response.physical_path)
File "C:\python\lib\site-packages\wfastcgi.py", line 633, in read_wsgi_handler
handler = get_wsgi_handler(os.getenv("WSGI_HANDLER"))
File "C:\python\lib\site-packages\wfastcgi.py", line 605, in get_wsgi_handler
handler = handler()
File "C:\python\lib\site-packages\django\core\wsgi.py", line 12, in get_wsgi_application
django.setup(set_prefix=False)
File "C:\python\lib\site-packages\django\__init__.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "C:\python\lib\site-packages\django\utils\log.py", line 76, in configure_logging
logging_config_func(logging_settings)
File "C:\python\lib\logging\config.py", line 811, in dictConfig
dictConfigClass(config).configure()
File "C:\python\lib\logging\config.py", line 572, in configure
raise ValueError('Unable to configure handler '
ValueError: Unable to configure handler 'app_file'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.