Я только что перешел на Python из PHP после того, как унаследовал устаревшее приложение google app engine. Я пытался перейти на python 2.7, следуя различным онлайн-учебникам, но я не в состоянии справиться с этой ошибкой, приведенной ниже. Это как-то связано с тем, как я называю GAE или Django API?
...
runtime: python27
api_version: 1
threadsafe: yes
builtins:
- remote_api: on
inbound_services:
- warmup
libraries:
- name: django
version: "1.2"
...
У меня все еще есть
from google.appengine.ext.webapp.util import run_wsgi_app
В моем коде это должно быть изменено на buildin?
ERROR 2012-02-28 16:31:00,167 wsgi.py:205]
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine- default.bundle/Contents/Resources/google_appengine/google/appengine/runtime/wsgi.py", line 193, in Handle
result = handler(self._environ, self._StartResponse)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django_1_2/django/core/handlers/wsgi.py", line 248, in __call__
response = self.get_response(request)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/django_1_2/django/core/handlers/base.py", line 141, in get_response
return self.handle_uncaught_exception(request, resolver, sys.exc_info())
UnboundLocalError: local variable 'resolver' referenced before assignment
INFO 2012-02-28 16:31:00,178 dev_appserver.py:2884] "GET /ibi/index.html HTTP/1.1" 500 -