如何自定义django中自定义表单的错误信息

2025-05-21 13:04:16
推荐回答(1个)
回答(1):

你先把template在这个字段的代码贴一下 KissMyDumbAss
{{ form.no.errors.as_text }} 就这个