我正在使用 django-facebook,由于某种奇怪的原因它停止了工作。当然,我改变了一些东西,让它发生在某个地方。但正如你可能已经猜到的那样,我目前一无所知。
我收到的错误消息:
TemplateSyntaxError at /facebook/connect/
Caught TypeError while rendering: unhashable type: 'dict'
Method: GET
Request URL: http://dev.wiespeeltwaar.be/facebook/connect/
Django Version: 1.3
Exception Type: TemplateSyntaxError
Exception Value:
Caught TypeError while rendering: unhashable type: 'dict'
Exception Location: /home/jonasg/django-wiespeeltwaar/django/utils/functional.py in wrapper, line 22
Python Executable: /home/jonasg/.virtualenvs/wiespeeltwaar/bin/python
Python Version: 2.6.6
Python Path:
['/home/jonasg/dev/wiespeeltwaar',
'/home/jonasg/.virtualenvs/wiespeeltwaar/lib/python2.6/site-packages/distribute-0.6.10-py2.6.egg',
'/home/jonasg/.virtualenvs/wiespeeltwaar/lib/python2.6/site-packages/pip-0.7.2-py2.6.egg',
'/home/jonasg/django-wiespeeltwaar',
'/home/jonasg/dev/wiespeeltwaar',
'/home/jonasg/.virtualenvs/wiespeeltwaar/lib/python2.6',
'/home/jonasg/.virtualenvs/wiespeeltwaar/lib/python2.6/plat-linux2',
'/home/jonasg/.virtualenvs/wiespeeltwaar/lib/python2.6/lib-tk',
'/home/jonasg/.virtualenvs/wiespeeltwaar/lib/python2.6/lib-old',
'/home/jonasg/.virtualenvs/wiespeeltwaar/lib/python2.6/lib-dynload',
'/usr/lib/python2.6',
'/usr/lib/python2.6/plat-linux2',
'/usr/lib/python2.6/lib-tk',
'/home/jonasg/.virtualenvs/wiespeeltwaar/lib/python2.6/site-packages']
Server time: zon, 11 Dec 2011 22:41:03 +0100
Template error
In template /home/jonasg/.virtualenvs/wiespeeltwaar/lib/python2.6/site-packages/django_facebook/templates/django_facebook/connect.html, error at line 87
86 <!--form to call registration via facebook -->
87 <form action="{% url facebook_connect %}?facebook_login=1" method="post">
88 <h2>Register, login or connect with facebook</h2>
由于某种原因,url 模板标签不能给我 facebook_connect 视图的 url。
任何帮助表示赞赏!