【发布时间】:2020-11-27 15:45:34
【问题描述】:
【问题讨论】:
【问题讨论】:
它们是保存在数据库中的行,在 Django 自动生成的 'django_admin_log' db 表中。
它是在 django 管理应用程序中定义的。您可以像这样导入相关模型并访问它的内容:
from django.contrib.admin.models import LogEntry
entries = LogEntry.objects.all()
# Here, you can do anything with these log entries, including returning them to the client side.
【讨论】: