我在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.
如果可以在计算引擎上进行调试,请与我分享。
顺便说一句,在我的本地环境中,它运行良好。