Question

I am trying to use django-grappelli with django version 1.5.1

but after setup, all the requirements for grappelli, i am having the following error.

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?

Was it helpful?

Solution

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.

reference link https://github.com/sehmaschine/django-grappelli/issues/407

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top