[英]Could not parse the remainder: '% form.as_p %' from '% form.as_p %'
I have a error with Django: I think everything is correct but I don't understand this error Cloud you help me please?我对 Django 有一个错误:我认为一切都是正确的,但我不明白这个错误 Cloud 你帮帮我好吗?
Could not parse the remainder: '% form.as_p %' from '% form.as_p %'无法解析余数:来自“% form.as_p %”的“% form.as_p %”
<form action="{% url 'learning_logs:new_topic' %}" method = 'post'>
{% csrf_token %}
{{% form.as_p %}}
You don't need the percents in the form tag {{% form.as_p %}}
您不需要表单标签中的百分比
{{% form.as_p %}}
It should be {{ form.as_p }}
它应该是
{{ form.as_p }}
https://docs.djangoproject.com/en/dev/topics/forms/#form-rendering-options https://docs.djangoproject.com/en/dev/topics/forms/#form-rendering-options
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.