"IOError:[Errno 30]只读文件系统"Google App Engine中的错误 [英] "IOError: [Errno 30] Read-only file system" error in Google App Engine
本文介绍了"IOError:[Errno 30]只读文件系统"Google App Engine中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Flask中有一个函数,可以进行一些Web抓取并将内容放入HTML文件中.
I have a function in Flask that does some web scraping and puts the content in a HTML file.
@app.route('/something')
def something():
web_scraping()
return render_template('myFile.html')
函数 web_scraping
将一些HTML代码输出到 myFile.html
,并且在本地运行时效果很好,但是当我将其放在Google App Engine上时,我得到了错误:
The function web_scraping
outputs some HTML code to myFile.html
and works great when I run it locally, but when I put it on Google App Engine, I get this error:
IOError: [Errno 30] Read-only file system: 'templates/myFile.html'
推荐答案
查看全文