DjangoAppEngine TestApp

时间:2011-03-24 17:35:44

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

启动djangoappengine testapp需要一些帮助。我按照http://www.allbuttonspressed.com/projects/djangoappengine的说明操作,但是当我运行./manage.py runserver时。在项目目录中,我收到以下错误:

WARNING  2011-03-24 12:23:21,994 datastore_file_stub.py:657] Could not read datastore
data from /media/disk/Projex/AppEngineApp/app/.gaedata/datastore  
Error: option --rdbms_sqlite_path not recognized
Runs a development application server for an application.
manage.py [options] <application root>__

当我尝试评论''rdbms_sqlite_path':os.path.join(DATA_ROOT,'rdbms'),'app in app / djangoappengine / db / base.py时出现以下错误:

WARNING  2011-03-24 12:26:07,239 datastore_file_stub.py:657] Could not read datastore  
data from /media/disk/Projex/AppEngineApp/app/.gaedata/datastore
Traceback (most recent call last):
File "./manage.py", line 11, in <module>
execute_manager(settings)
File "/media/disk/Projex/AppEngineApp/app/django/core/management/__init__.py", line 438,   
in execute_manager
utility.execute()
File "/media/disk/Projex/AppEngineApp/app/django/core/management/__init__.py", line 379,  
in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File   
"/media/disk/Projex/AppEngineApp/app/djangoappengine/management/commands/runserver.py",  
line 94, in run_from_argv
start_dev_appserver(argv)
File 
"/media/disk/Projex/AppEngineApp/app/djangoappengine/management/commands/runserver.py",   
line 81, in start_dev_appserver
dev_appserver_main.main([progname] + args + [PROJECT_DIR])
File "/usr/local/gaepy/google/appengine/tools/dev_appserver_main.py", line 426, in main
static_caching=static_caching)
File "/usr/local/gaepy/google/appengine/tools/dev_appserver.py", line 3820, in   
CreateServer
server = HTTPServerWithScheduler((serve_address, port), handler_class)
File "/usr/local/gaepy/google/appengine/tools/dev_appserver.py", line 3840, in __init__
request_handler_class)
File "/usr/lib/python2.6/SocketServer.py", line 400, in __init__
self.server_bind()
File "/usr/lib/python2.6/BaseHTTPServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.6/SocketServer.py", line 411, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.gaierror: [Errno -5] No address associated with hostname

有人遇到过这个问题吗?

2 个答案:

答案 0 :(得分:0)

您可能已经解决了这个问题,但对于未来的用户:

警告可能有多种原因:

  • 数据存储为空,in that case ignore
  • 数据存储文件的错误权限
  • 数据损坏问题

错误可以解决by updating djangoappengine

答案 1 :(得分:0)

更新到最新版本的Google应用引擎。