我正在一个网站上工作,我想在其中使用 Django-AllAuth 来允许用户使用 Facebook 登录。但是,我有点难过。当我运行示例代码,然后转到示例主页模板中的“注册”时,我收到此处底部显示的错误消息。我做错了什么?
我想知道我是否需要采取更多步骤才能完成这项工作。我知道管理页面为您提供了注册虚拟应用程序的选项 - 但我不确定我是否理解这是为了什么。我是否需要制作自己的“身份验证应用程序”供用户用于登录?或者这是否用于集成我可能为其他目的开发的外部应用程序(因此,不需要登录)?
Django 错误如下:
TemplateSyntaxError at /accounts/signup/
'uni_form_tags' is not a valid tag library: Template library uni_form_tags not found, tried django.templatetags.uni_form_tags,django.contrib.staticfiles.templatetags.uni_form_tags,django.contrib.admin.templatetags.uni_form_tags,allauth.account.templatetags.uni_form_tags,allauth.socialaccount.templatetags.uni_form_tags
Request Method: GET
Request URL: http://localhost:8000/accounts/signup/
Django Version: 1.5.1
Exception Type: TemplateSyntaxError
Exception Value:
'uni_form_tags' is not a valid tag library: Template library uni_form_tags not found, tried django.templatetags.uni_form_tags,django.contrib.staticfiles.templatetags.uni_form_tags,django.contrib.admin.templatetags.uni_form_tags,allauth.account.templatetags.uni_form_tags,allauth.socialaccount.templatetags.uni_form_tags
Exception Location: /usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in load, line 1044
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/home/snares/sampleapp/django-allauth/example',
'/usr/local/lib/python2.7/dist-packages/pip-1.3.1-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/django_allauth-0.12.0_dev-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
'/usr/lib/python2.7/dist-packages/ubuntuone-client',
'/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
'/usr/lib/python2.7/dist-packages/ubuntuone-couch',
'/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol']
Server time: Mon, 24 Jun 2013 15:23:10 -0500