0

我无法在本地开发环境中访问 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 应用引擎补丁

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

4

0 回答 0