Python Django Grappelli:与#x27相反;grp#U相关查找';带参数';()';和关键字参数';{}';找不到

Python Django Grappelli:与#x27相反;grp#U相关查找';带参数';()';和关键字参数';{}';找不到,python,django,django-grappelli,Python,Django,Django Grappelli,我使用django grappelli在管理站点上创建可订购的内联线。偶尔(不可重复-大约50%的时间,这特别奇怪),Django在我尝试从内联保存排序时抛出以下异常: Exception Type: NoReverseMatch Exception Value: Reverse for 'grp_related_lookup' with arguments '()' and keyword arguments '{}' not found. Exception Location: /us

我使用django grappelli在管理站点上创建可订购的内联线。偶尔(不可重复-大约50%的时间,这特别奇怪),Django在我尝试从内联保存排序时抛出以下异常:

 Exception Type: NoReverseMatch
 Exception Value: Reverse for 'grp_related_lookup' with arguments '()' and keyword arguments '{}' not found.
 Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in render, line 424
令人不快的是:

 $("#id_" + this).grp_related_fk({lookup_url:"{% url 'grp_related_lookup' %}"});
根据中给出的建议,我尝试在shell中快速测试它,但它似乎工作正常:

>>> from django.core.urlresolvers import reverse
>>> print reverse('grp_related_lookup')
/grappelli/lookup/related/
我不知所措。有没有人有过类似的经历


Django版本是1.5.1。

您可能忘了在URL.py中添加grappelli URL(至少对我来说是这样)

url(r'^grappelli/', include('grappelli.urls')),