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
有沒有人有處理這之前?我感覺自己在移植項目的時候瘋狂了起來。