将Django-SocialRegistration安装到Pinax项目时出现“无效块标记”
问题描述:
基本社交Pinax项目的工作原理,直到我将“socialregistration”添加到已安装的应用程序。将Django-SocialRegistration安装到Pinax项目时出现“无效块标记”
In template /home/timothy/python-environments/pinax/lib/python2.6/site-packages/pinax/templates/default/_account_bar.html, error at line 3
Invalid block tag: 'ifopenid', expected 'else' or 'endif'
答
我的猜测是socialregistration的openid_tags.py覆盖pinax的副本。
参见:
https://github.com/pinax/pinax/blob/master/pinax/apps/account/templatetags/openid_tags.py
与
我不知道这是否是问题,但你可能想标志它要么组的,看看他们为此得到了解决。
我认为socialregistration是您添加到INSTALLED_APPS的最后一个应用程序?那么它可能会覆盖Pinax's,它有'ifopenid'标签。