【发布时间】:2020-10-10 02:56:06
【问题描述】:
我正在创建一个博客并使用 djangorestframework 作为我的后端并为我的前端做出反应。当我序列化我的数据时,我丢失了我的博客条目的格式(以段落形式编写)。有没有办法解决这个问题。
所以:
博文
This is my blog post, and this is my formatting.
My second paragraph.
成为。
[{
"title": "blog post",
content: "This is my blog post, and this is my formatting My second paragraph."
}
]
当我通过我的反应时它仍然存在
This is my blog post, and this is my formatting My second paragraph.
【问题讨论】:
标签: json django reactjs django-rest-framework format