django - 在管理视图中保存非常简单模型的更改会在 GoogleComputeEngine 上引发几个错误,为什么?
问题描述
我有一个连接数据库的OpenLiteSpeed Django
应用程序。我创建了一些模型和视图,在这些视图中我可以显示 SQLite 数据的列表和图形。我还可以在管理视图中列出和搜索数据。但是,在管理员视图中,当我尝试进行一些更改并保存或删除主要是 get时,它很少起作用。Google Cloud Compute Engine
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.
如果有办法在计算引擎上进行调试,请与我分享。
顺便说一句,在我的本地环境中它运行良好。
解决方案
推荐阅读
- javascript - 将类添加到if包含文本
- mysql - Express - MySQL conn.end() 不起作用(调用退出后无法入队)
- azure - azure sql 数据库中的存储过程在另一个 azure sql 数据库中查询表
- java - 如何处理纯文本中的链接和数字
- javascript - 无法获取 vars 的值以使用 javascript 动态创建表单
- c# - 如何从 C# 中的枚举中获取显示值?
- sql - 最长和最流行组合的 SQL 查询
- python - 使用 python 编码和使用 nodejs 编码时得到不同的结果
- java - 如何映射
关于它们在 Java 中的值的两个 csv 列? - docker - 卷 - 设备映射如何在 Docker 上工作