简体   繁体   English

适用于Django 1.5.1的Django Grappelli

[英]Django Grappelli for django 1.5.1

I am trying to use django-grappelli with django version 1.5.1 我正在尝试将django-grappelli与Django 1.5.1版一起使用

but after setup, all the requirements for grappelli, i am having the following error. 但是设置完成后,所有对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 %}

Ideas? 想法?

grappelli 2.4.8 (compatible with django 1.5) does not include firstof from future, grappelli 2.5.0 (compatible with django 1.6) does. grappelli 2.4.8(与django 1.5兼容)不包括将来的firstof,grappelli 2.5.0(与django 1.6兼容)包括。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM