在代码的这一部分中,我得到了错误Could not parse the remainder: '"' from '"': {% include 'test.html' with pic_url="{%static 'picture.jpg' %}" %} 有没有可能在Django模板中写出这样的东西?
{% for answer in post.answers_set.all.order_by('-date_posted') %}
我使用这一行检索models.py中与此问题相关的所有答案。当我在django shell中工作时,它工作得很好,但是在django模板中显示了奇怪的错误,“无法解析来自'post.answers_set.all.order_by('-date_posted')'".<e