1
我正在使用django-nonrel创建将部署在谷歌appengine上的应用程序。我使用的是django-social-auth,它反过来使用python-oauth2,现在我得到了这个错误。运行Django应用程序时出错
ImproperlyConfigured at/
Error importing request processor module social_auth.context_processors: "No module named _io"
Request Method: GET
Request URL: http://app.rajatsaxena.org:8000/
Django Version: 1.3
Exception Type: ImproperlyConfigured
Exception Value:
Error importing request processor module social_auth.context_processors: "No module named _io"
Exception Location: /home/rajat/djangoapi/googapp/appengine2/fullauth/django/template/context.py in get_standard_processors, line 154
Python Executable: /usr/bin/python
Python Version: 2.7.1
我同意你,但我怎么可以在appengine上使用python 2.5,因为最近appengine已经启动了对python 2.7的支持。当我在appengine上部署这个应用时,它给出了500个服务器错误。 –
默认设置应该给你2.6或2.5。 2.6在本地为我工作,我可以部署它。如果你改变为2.7,你必须改变很多东西,并遵循一个相当不同的程序。如果代码在生产中失败,那么我建议你粘贴更多的代码,以便我们可以看到更多的内容。 python 2.6为ubuntu工作,只需执行'sudo apt-get install python2.6',然后在本地使用python 2.6作为运行时。当您部署到生产环境时,针对2.6和2.7有不同的说明,因此您可能不会混淆。如果需要,您也可以一路降级到2.5。 –