我正在尝试在Windows中使用IIS上传Django应用。我按照教程进行操作,但始终遇到此错误,而且对如何解决它一无所知。 我安装了所有先决条件。
错误是:
# PLOTTING
colums = df.columns
ax = df.plot(kind='bar', stacked=True, width=1, figsize=(10, 6))
ax.plot(range(len(df)), df.sum(1), label='Total')
ax.legend()
plt.show()
,我有两个web.config文件。一个在主wwwroot中,另一个用于处理静态文件。
Error occurred while reading WSGI handler:
Traceback (most recent call last):
File "c:\users\rodri\python\python37-32\lib\site-packages\wfastcgi.py", line 791, in main
env, handler = read_wsgi_handler(response.physical_path)
File "c:\users\rodri\python\python37-32\lib\site-packages\wfastcgi.py", line 622, in read_wsgi_handler
env = get_environment(physical_path)
File "c:\users\rodri\python\python37-32\lib\site-packages\wfastcgi.py", line 399, in get_environment
doc = minidom.parse(web_config)
File "c:\users\rodri\python\python37-32\lib\xml\dom\minidom.py", line 1958, in parse
return expatbuilder.parse(file)
File "c:\users\rodri\python\python37-32\lib\xml\dom\expatbuilder.py", line 911, in parse
result = builder.parseFile(fp)
File "c:\users\rodri\python\python37-32\lib\xml\dom\expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 24, column 16
StdOut:
StdErr:
<configuration>
<system.webServer>
<handlers>
<add name="Python FastCGI"
path="*"
verb="*"
modules="FastCgiModule"
scriptProcessor="c:\users\rodri\python\python37-32\python.exe|c:\users\rodri\python\python37-32\lib\site-packages\wfastcgi.py"
resourceType="Unspecified"
requireAccess="Script" />
</handlers>
</system.webServer>
<appSettings>
<!--Required Settings-->
<add key="WSGI_HANDLER" value="NLPFrontEnd.wsgi.application" />
<add key="PYTHONPATH" value="C:\inetpub\wwwroot\NLPFrontEnd" />
<add key="DJANGO_SETTINGS_MODULE" value="NLPFrontEnd.settings" />
</appSettings>
</configuration>
任何帮助都会非常准确