Python 模板标记不存在';不考虑传递的上下文变量
我的自定义模板标记与传递的上下文变量不一致。因此,我有一个名为Python 模板标记不存在';不考虑传递的上下文变量,python,django,Python,Django,我的自定义模板标记与传递的上下文变量不一致。因此,我有一个名为task\u list.html的模板,其中包括引用我的自定义模板标记({%url\u replace%})的paginator.html: 任务列表.html: ... {% include 'paginator.html' with page_obj=tasks_tomorrow page='page_tomorrow' %} ... ... <a class="page-link" href="?{% url_repla
task\u list.html
的模板,其中包括引用我的自定义模板标记({%url\u replace%}
)的paginator.html
:
任务列表.html
:
...
{% include 'paginator.html' with page_obj=tasks_tomorrow page='page_tomorrow' %}
...
...
<a class="page-link" href="?{% url_replace page=page_obj.paginator.num_pages %}"
...
paginator.html
:
...
{% include 'paginator.html' with page_obj=tasks_tomorrow page='page_tomorrow' %}
...
...
<a class="page-link" href="?{% url_replace page=page_obj.paginator.num_pages %}"
...
这里的问题是什么