1
我最近试图将我的GAE项目从python2.5迁移到python2.7。不幸的是,我遇到了gaesessions所需的appengine_config.py文件的一些问题。在Python中使用gae和gaesessions时出现的NoneType错误2.7
我不知道问题出在GAE的部分或会话部分,但现在我认为它在会话方面,因为我能够打印出环境变量,但不能打印出my_start_response变量的类型同时在问题所在的地方玩耍。
这里是问题:
Traceback (most recent call last):
File "c:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 195, in Handle
result = handler(dict(self._environ), self._StartResponse)
File "d:\Documents\dna_manip\gaesessions\__init__.py", line 472, in __call__
return self.app(environ, my_start_response)
TypeError: 'NoneType' object is not callable
有没有人有处理这之前?我感觉自己在移植项目的时候疯狂了起来。