您的位置:首页 > Web前端 > BootStrap

zinnia-theme-bootstrap 使用过程中的问题

2017-02-27 20:43 162 查看

使用django 1.1版本  + django-blog-zinnia + zinnia-theme-bootstrap 搭建博客的时候会出现如下两个错误,解决方式为:


1、Invalid syntax for cycle tag in entry_detail_base.html
错误提示:This results in error No named cycles in template. 'box1,box2' is not defined when rendering the blog entry.

解决方法:把标志     {% cycle box1,box2 %}   改为  {% cycle 'box1' 'box2' %}


2、'future' is not a registered tag library. Must be one of:  
django 1.8之后就不在兼容 future,并且在django 1.10中已去掉future

解决方法:把    {% load firstof from future %}  这句话去掉以兼容django 1.1



django+django-blog-zinnia+zinnia-theme-bootstrap 的博客例子可以参考www.hzhlog.cn

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  django zinnia