在GAE上将django链接到facebook

在GAE上将django链接到facebook,django,facebook,google-app-engine,Django,Facebook,Google App Engine,我一直在使用Python2.7上的,但似乎不使用Python2.5,我需要它在Google应用程序引擎上运行 我能得到一些关于库的建议吗?这些库允许我与Facebook以及其他可能与python 2.5兼容的社交网站集成,或者修复这个特定的bug?我突然出现在下面的堆栈跟踪中 谢谢你的帮助 Environment: Request Method: GET Request URL: http://localhost:8000/solve/ Django Version: 1.3 alpha 1

我一直在使用Python2.7上的,但似乎不使用Python2.5,我需要它在Google应用程序引擎上运行

我能得到一些关于库的建议吗?这些库允许我与Facebook以及其他可能与python 2.5兼容的社交网站集成,或者修复这个特定的bug?我突然出现在下面的堆栈跟踪中

谢谢你的帮助

Environment:

Request Method: GET
Request URL: http://localhost:8000/solve/
Django Version: 1.3 alpha 1
Python Version: 2.5.0
Installed Applications:
['djangoappengine',
 'djangotoolbox',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'solve',
 'socialregistration']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'socialregistration.middleware.FacebookMiddleware')


Template error:
In template f:\coursework\code\gae\django-guestbook\templates\base.html, error at line 19
   'facebook_tags' is not a valid tag library: ImportError raised loading socialregistration.templatetags.facebook_tags: cannot import name parse_qs
   9 :   <body>


   10 :   


   11 :    {% load facebook_tags %} 


   12 :   {% facebook_button %}


   13 :   {% facebook_js %}


   14 :   


   15 :   {% block content %}{% endblock %}


   16 :   </body>


   17 : </html>


   18 : 

Traceback:
File "F:\Coursework\Code\GAE\django-guestbook\django\core\handlers\base.py" in get_response
  109.                         response = callback(request, *callback_args, **callback_kwargs)
File "F:\Coursework\Code\GAE\django-guestbook\solve\views.py" in give_question
  74.                                'form': CreateQuestionForm()})
File "F:\Coursework\Code\GAE\django-guestbook\django\views\generic\simple.py" in direct_to_template
  28.     return HttpResponse(t.render(c), mimetype=mimetype)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\__init__.py" in render
  173.             return self._render(context)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\__init__.py" in _render
  167.         return self.nodelist.render(context)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\__init__.py" in render
  796.                 bits.append(self.render_node(node, context))
File "F:\Coursework\Code\GAE\django-guestbook\django\template\debug.py" in render_node
  73.             result = node.render(context)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\loader_tags.py" in render
  103.         compiled_parent = self.get_parent(context)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\loader_tags.py" in get_parent
  100.         return get_template(parent)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\loader.py" in get_template
  157.     template, origin = find_template(template_name)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\loader.py" in find_template
  134.             source, display_name = loader(name, dirs)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\loader.py" in __call__
  42.         return self.load_template(template_name, template_dirs)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\loader.py" in load_template
  48.             template = get_template_from_string(source, origin, template_name)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\loader.py" in get_template_from_string
  168.     return Template(source, origin, name)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\__init__.py" in __init__
  158.         self.nodelist = compile_string(template_string, origin)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\__init__.py" in compile_string
  186.     return parser.parse()
File "F:\Coursework\Code\GAE\django-guestbook\django\template\__init__.py" in parse
  282.                     compiled_result = compile_func(self, token)
File "F:\Coursework\Code\GAE\django-guestbook\django\template\defaulttags.py" in load
  957.                                       (taglib, e))

Exception Type: TemplateSyntaxError at /solve/
Exception Value: 'facebook_tags' is not a valid tag library: ImportError raised loading socialregistration.templatetags.facebook_tags: cannot import name parse_qs
环境:
请求方法:获取
请求URL:http://localhost:8000/solve/
Django版本:1.3 alpha 1
Python版本:2.5.0
已安装的应用程序:
['djangappengine',
“Djangoolbox”,
“django.contrib.auth”,
“django.contrib.contenttypes”,
“django.contrib.sessions”,
“解决”,
“社会注册”]
已安装的中间件:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'socialregistration.middleware.FacebookMiddleware')
模板错误:
在模板f:\coursework\code\gae\django留言簿\templates\base.html中,第19行出现错误
“facebook_标记”不是有效的标记库:ImportRoad加载socialregistration.templatetags.facebook_标记:无法导入名称解析
9 :   
10 :   
11:{%load facebook_标记%}
12:{%facebook_按钮%}
13:{%facebook_js%}
14 :   
15:{%block content%}{%endblock%}
16 :   
17 : 
18 : 
回溯:
get\U响应中的文件“F:\Coursework\Code\GAE\django留言簿\django\core\handlers\base.py”
109响应=回调(请求,*回调参数,**回调参数)
问题中的文件“F:\Coursework\Code\GAE\django留言簿\solve\views.py”
74.                                '表单“:CreateQuestionForm()})
文件“F:\Coursework\Code\GAE\django留言簿\django\views\generic\simple.py”位于直接\u到\u模板中
28返回HttpResponse(t.render(c),mimetype=mimetype)
渲染中的文件“F:\Coursework\Code\GAE\django留言簿\django\template\\ uuuu init\uuuu.py”
173返回self.\u呈现(上下文)
文件“F:\Coursework\Code\GAE\django留言簿\django\template\\ uuu init\uuuu.py”位于\u render中
167返回self.nodelist.render(上下文)
渲染中的文件“F:\Coursework\Code\GAE\django留言簿\django\template\\ uuuu init\uuuu.py”
796bits.append(self.render_节点(节点,上下文))
render_节点中的文件“F:\Coursework\Code\GAE\django留言簿\django\template\debug.py”
73结果=node.render(上下文)
渲染中的文件“F:\Coursework\Code\GAE\django留言簿\django\template\loader\u tags.py”
103编译的\u parent=self.get\u parent(上下文)
get\u parent中的文件“F:\Coursework\Code\GAE\django留言簿\django\template\loader\u tags.py”
100返回获取模板(父级)
get\U模板中的文件“F:\Coursework\Code\GAE\django留言簿\django\template\loader.py”
157模板,原点=查找模板(模板名称)
文件“F:\Coursework\Code\GAE\django留言簿\django\template\loader.py”位于find\u模板中
134源,显示\u名称=加载程序(名称,目录)
调用中的文件“F:\Coursework\Code\GAE\django留言簿\django\template\loader.py”__
42返回self.load\u模板(模板名称、模板目录)
加载模板中的文件“F:\Coursework\Code\GAE\django留言簿\django\template\loader.py”
48模板=从字符串(源、源、模板名称)获取模板
文件“F:\Coursework\Code\GAE\django留言簿\django\template\loader.py”位于get\u template\u from\u字符串中
168返回模板(来源、来源、名称)
文件“F:\Coursework\Code\GAE\django留言簿\django\template\\ uuuu init\uuuu.py”位于\uu init__
158self.nodelist=编译字符串(模板字符串,原点)
文件“F:\Coursework\Code\GAE\django留言簿\django\template\\ uuuu init\ uuuu.py”在编译字符串中
186返回parser.parse()
解析中的文件“F:\Coursework\Code\GAE\django留言簿\django\template\\ uuuu init\uuuu.py”
282编译结果=编译函数(self,token)
文件“F:\Coursework\Code\GAE\django留言簿\django\template\defaulttags.py”已加载
957(taglib,e))
异常类型:TemplateSyntaxError位于/solve/
异常值:“facebook_标记”不是有效的标记库:ImportError加载socialregistration.templatetags.facebook_标记:无法导入名称解析

您应该使用更新的Facebook Python SDK和Facebook Javascript SDK。我已经在GAE上部署了2个Facebook应用程序,更新的Facebook SDK提供了利用Graph API所需的一切