【问题标题】:Djangobb 'pagination_tags' is not a valid tag libraryDjangobb 'pagination_tags' 不是有效的标签库
【发布时间】:2014-05-02 11:32:19
【问题描述】:

我已经安装了Djangobb,尽管文档非常少。现在的问题是,每当我尝试查看某个主题时,我都会收到此错误:

TemplateSyntaxError at /forum/1/
'pagination_tags' is not a valid tag library: Template library pagination_tags not found, tried django.templatetags.pagination_tags,django.contrib.staticfiles.templatetags.pagination_tags,django.contrib.admin.templatetags.pagination_tags,dastan.templatetags.pagination_tags,photo.templatetags.pagination_tags,django_markdown.templatetags.pagination_tags,haystack.templatetags.pagination_tags,djangobb_forum.templatetags.pagination_tags
Request Method: GET
Request URL:    http://127.0.0.1:8000/forum/1/
Django Version: 1.6.1
Exception Type: TemplateSyntaxError
Exception Value:    
'pagination_tags' is not a valid tag library: Template library pagination_tags not found, tried django.templatetags.pagination_tags,django.contrib.staticfiles.templatetags.pagination_tags,django.contrib.admin.templatetags.pagination_tags,dastan.templatetags.pagination_tags,photo.templatetags.pagination_tags,django_markdown.templatetags.pagination_tags,haystack.templatetags.pagination_tags,djangobb_forum.templatetags.pagination_tags
Exception Location: /home/me/.djenv/local/lib/python2.7/site-packages/django/template/defaulttags.py in load, line 1084
Python Executable:  /home/me/.djenv/bin/python
Python Version: 2.7.3
Python Path:    
['/home/me/sai',
 '/home/me/.djenv/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg',
 '/home/me/.djenv/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
 '/home/me/.djenv/local/lib/python2.7/site-packages/djangobb_forum-0.0.1a0-py2.7.egg',
 '/home/me/.djenv/local/lib/python2.7/site-packages/pytz-2014.1-py2.7.egg',
 '/home/me/.djenv/local/lib/python2.7/site-packages/postmarkup-1.2.0-py2.7.egg',
 '/home/me/.djenv/local/lib/python2.7/site-packages/django_haystack-2.1.0-py2.7.egg',
 '/home/me/.djenv/local/lib/python2.7/site-packages/linaro_django_pagination-2.0.2-py2.7.egg',
 '/home/me/.djenv/local/lib/python2.7/site-packages/dinette-1.4e-py2.7.egg',
 '/home/me/.djenv/lib/python2.7',
 '/home/me/.djenv/lib/python2.7/plat-linux2',
 '/home/me/.djenv/lib/python2.7/lib-tk',
 '/home/me/.djenv/lib/python2.7/lib-old',
 '/home/me/.djenv/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/home/me/.djenv/local/lib/python2.7/site-packages',
 '/home/me/.djenv/local/lib/python2.7/site-packages/PIL']
Server time:    Mon, 17 Mar 2014 18:18:59 -0500

感谢您提供解决此问题的提示。

【问题讨论】:

    标签: django pagination


    【解决方案1】:

    我知道您提出问题已经一个月了,但如果您还没有找到解决方案,请尝试确保已安装 linaro_django_pagination 并将其添加到 settings.py 文件中已安装的应用程序中。

    我这样做了,它似乎已经让我摆脱了你正在查看的错误...我现在有新的错误,但我认为一个已修复。

    【讨论】:

      猜你喜欢
      • 2015-09-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-11
      • 2011-05-31
      • 2012-08-22
      • 2012-04-02
      相关资源
      最近更新 更多