首页 > 解决方案 > 在管理视图中保存非常简单模型的更改会在 GoogleComputeEngine 上引发几个错误,为什么?

问题描述

我有一个连接数据库的OpenLiteSpeed Django应用程序。我创建了一些模型和视图,在这些视图中我可以显示 SQLite 数据的列表和图形。我还可以在管理视图中列出和搜索数据。但是,在管理员视图中,当我尝试进行一些更改并保存或删除主要是 get时,它很少起作用。Google Cloud Compute EngineSQLite500 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.

如果有办法在计算引擎上进行调试,请与我分享。

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

标签: djangoutf-8google-compute-enginedjango-wsgilitespeed

解决方案


推荐阅读