Django models Django中文本字段的硬包装

Django models Django中文本字段的硬包装,django-models,model,textfield,Django Models,Model,Textfield,我在django中使用TextField,我有一个表单供用户输入一篇文章。我希望这篇文章以硬包装的方式保存,以便在以后显示时,在间距和缩进方面完全相同 当我使用管理工具进入文章时,它显示为我想要的。但是,当我在模板中引用它时,所有的句子在没有正确的间距和换行符的情况下一起流动。在模板中使用时,如何使文本字段硬包装 这是我的TextField声明: class Description(models.Model): summary=models.TextField(verbose_name="My

我在django中使用
TextField
,我有一个表单供用户输入一篇文章。我希望这篇文章以硬包装的方式保存,以便在以后显示时,在间距和缩进方面完全相同

当我使用管理工具进入文章时,它显示为我想要的。但是,当我在模板中引用它时,所有的句子在没有正确的间距和换行符的情况下一起流动。在模板中使用时,如何使文本字段硬包装

这是我的TextField声明:

class Description(models.Model):
summary=models.TextField(verbose_name="My Summary")
我通过管理员输入以下示例:

Hi I am using TextField in django and I have a form for the user to enter a passage. 

I want this passage to be saved with hard wrap in such a way that it appears the exact
same in terms of spacing and indentation and what not. When I use the admin to enter
the passage,

It appears as I want it but when I reference it on a template. All the sentences follow
up without the correcect spacing and newlines. how do I achieve this please
当我在视图中使用
info=Description.objects.get(pk=1)
或在模板中使用
{{info}}
时,它与上面的情况并不完全相同