访问Google App Engine中的信息中心或管理界面时出错

时间:2013-05-22 09:13:10

标签: python django google-app-engine app-engine-patch google-app-engine-patch

我无法在本地开发环境中访问Google应用引擎的信息中心/管理界面,可以使用localhost访问:8000 / _ah / admin /.

它抛出以下错误:

  Traceback (most recent call last):
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2726, in _HandleRequest
      self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 2611, in _Dispatch
      base_env_dict=env_dict)
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 653, in Dispatch
      base_env_dict=base_env_dict)
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1675, in Dispatch
      self._module_dict)
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1575, in ExecuteCGI
      reset_modules = exec_script(config, handler_path, cgi_path, hook)
    File "C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 1277, in ExecuteOrImportScript
      exec module_code in script_module.__dict__
    File "C:\Program Files\Google\google_appengine\google\appengine\ext\admin\__init__.py", line 94, in <module>
      class _AhAdminXsrfToken_(db.Model):
    File "C:\Projects_2013_05_14\retail\common\appenginepatch\appenginepatcher\patch.py", line 539, in __init__
      _initialize_model(cls, bases)
    File "C:\Projects_2013_05_14\retail\common\appenginepatch\appenginepatcher\patch.py", line 523, in _initialize_model
      cls._meta = _meta(cls, bases)
    File "C:\Projects_2013_05_14\retail\common\appenginepatch\appenginepatcher\patch.py", line 246, in __init__
      raise ValueError('Django expects models (here: %s.%s) to be defined in their own apps!' % (model.__module__, model.__name__))
  ValueError: Django expects models (here: __main__._AhAdminXsrfToken_) to be defined in their own apps!

我的发展环境如下 Google App Engine 1.6.1
Python 2.5
Django 1.1的Google应用引擎补丁

我无法理解这里出了什么问题 感谢您的帮助。

0 个答案:

没有答案