0

我正在尝试将 django-grappelli 与 django 版本 1.5.1 一起使用

但在设置后,grappelli 的所有要求,我有以下错误。

TemplateSyntaxError at /admin/
'firstof' is not a valid tag or filter in tag library 'future'


In template C:\Python27\lib\site-packages\grappelli\templates\admin\base.html, error at line 1


{% load admin_static %}{% load firstof from future %}{% load i18n grp_tags %}

想法?

4

1 回答 1

1

grappelli 2.4.8(与 django 1.5 兼容)不包含未来的 firstof,grappelli 2.5.0(与 django 1.6 兼容)包含。

参考链接https://github.com/sehmaschine/django-grappelli/issues/407

于 2014-04-22T10:15:27.567 回答