我们正在尝试在Azure上部署一个Python烧瓶应用程序,但继续跟踪追踪500错误。
StdErr:
2014-09-22 19:24:07.347000: Unhandled exception in wfastcgi.py: Traceback (most recent call last):
File "D:\Python27\Scripts\wfastcgi.py", line 710, in main
env, handler = read_wsgi_handler(response.physical_path)
File "D:\Python27\Scripts\wfastcgi.py", line 567, in read_wsgi_handler
return env, get_wsgi_handler(handler_name)
File "D:\Python27\Scripts\wfastcgi.py", line 550, in get_wsgi_handler
raise ValueError('"%s" could not be imported' % handler_name)
ValueError: "cpmapp.app" could not be imported
2014-09-22 19:24:07.370000: wfastcgi.py 2.1.0 closed
有人可以帮忙吗?
答案 0 :(得分:0)
我有类似的问题了解我的应用在Azure上失败的原因。
我假设您正在使用Azure Web Apps?
您必须使用2个重要文件(web.config& deploy.cmd)配置部署,并添加带有依赖项列表的requirements.txt文件。