无法分析“%”Djang中的余数:“%”

2024-10-01 09:29:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在处理DjangoMezannine,我遇到了一个与jinja奇怪的问题。在

TemplateSyntaxError at /services/
Could not parse the remainder: '%' from '%'
Request Method: GET
Request URL:    http://192.168.1.14/services/
Django Version: 1.8.3
Exception Type: TemplateSyntaxError
Exception Value:    
Could not parse the remainder: '%' from '%'
Exception Location: /usr/local/lib/python3.4/dist-packages/django/template/base.py in __init__, line 639
Python Executable:  /usr/bin/python3
Python Version: 3.4.3

我的代码如下所示:

^{pr2}$

你知道这是怎么回事吗?在

谢谢


Tags: thefromparseversionrequestusrserviceexception