Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/353.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python django,如何在输入框中用空格显示数据?_Python_Html_Django - Fatal编程技术网

Python django,如何在输入框中用空格显示数据?

Python django,如何在输入框中用空格显示数据?,python,html,django,Python,Html,Django,我通过一个输入框“Catho Fransis”从用户那里获得了名字,并将其保存到我的mysql数据库中的一个字段中 当我试图在另一页的另一个文本框中显示此名称时,只显示“Catho”。空格后的单词将被忽略 <td> <input disabled type="text" name="fname" style="width:235px;" value={{ user.first_name }} > </td> 如何显示名称?尝试在{{user

我通过一个输入框“Catho Fransis”从用户那里获得了名字,并将其保存到我的mysql数据库中的一个字段中

当我试图在另一页的另一个文本框中显示此名称时,只显示“Catho”。空格后的单词将被忽略

<td>
     <input disabled type="text" name="fname" style="width:235px;" value={{ user.first_name }}  > 
</td>


如何显示名称?

尝试在
{{user.first\u name}}

<td><input disabled type="text" name="fname" style="width:235px;" value="{{ user.first_name }}"> </td>


有关更多信息:

谢谢,它起作用了,我想既然我们给了“{user.first_name}}”一个值,那么输出就是{{user.first_name}。。。。