在管理员视图中保存非常简单的模型更改会在GoogleComputeEngine上引发多个错误,为什么?

我在OpenLiteSpeed Django中有一个Google Cloud Compute Engine应用程序,它连接一个SQLite数据库。我已经创建了一些模型和视图,在这些视图中,我可以显示SQLite数据的列表和图形。我还可以列出和搜索管理员视图中的数据。但是,在管理员视图中,当我尝试进行一些更改并保存或删除大多数内容时,会得到500 Internal Error,它很少起作用。

我尝试进行更改的模型:

from django.db import models

class Test(models.Model):

    aciklama = models.TextField(blank=True)

我无法在服务器上调试,以查看错误,我检查了项目目录中的stderr.log文件。 当我在管理视图页面上获得500 Internal Error时,发生以下错误:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xdd in position 7: invalid continuation byte

The above exception was the direct cause of the following exception:

SystemError: <class 'lsapi_wsgi.Request'> returned a result with an error set
Not Found: /favicon.ico
2020-05-16 06:31:45.902022 [ERROR] [1643] wsgiAppHandler failed to create req_obj.

如果可以在计算引擎上进行调试,请与我分享。

顺便说一句,在我的本地环境中,它运行良好。

yangpq008 回答:在管理员视图中保存非常简单的模型更改会在GoogleComputeEngine上引发多个错误,为什么?

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2342811.html

大家都在问