【问题标题】:When I open my http://localhost:9999/ the page is not found; what is the problem?当我打开我的 http://localhost:9999/ 时,找不到该页面;问题是什么?
【发布时间】:2011-02-24 11:17:01
【问题描述】:

我在 aptana studio 3 和 pydev 中使用谷歌应用引擎 python;

调试配置为:

mainmodule: C:\Program Files\Google\google_appengine\dev_appserver.py

参数:

"${project_loc:test}/src"
--port=9999

控制台是:

pydev debugger: warning: psyco not available for speedups (the debugger will still work correctly, but a bit slower)
pydev debugger: starting
WARNING  2011-02-24 11:11:09,447 urlfetch_stub.py:74] No ssl package found. urlfetch will not be able to validate SSL certificates.
INFO     2011-02-24 11:11:09,665 appengine_rpc.py:153] Server: appengine.google.com
WARNING  2011-02-24 11:11:09,691 datastore_file_stub.py:573] Could not read datastore data from C:\Users\Psoares\Desktop\outros\WEB DEV\Rubete 2010 Survey\ds
WARNING  2011-02-24 11:11:09,703 dev_appserver.py:3700] Could not initialize images API; you are likely missing the Python "PIL" module. ImportError: No module named _imaging
INFO     2011-02-24 11:11:09,726 dev_appserver_main.py:507] Running application rubete2010survey on port 9999: http://localhost:9999

当我去http://localhost:9999;找不到页面;

app.yaml 是:

application: rubete2010survey
version: 1
runtime: python
api_version: 1

handlers:  
    - url: /.*
      script: main.py

main.py 是:

print 'Content-Type: text/plain'
print ''
print 'Hello, world!'

它们在同一个文件夹中;测试/src

有什么问题?

【问题讨论】:

  • 在浏览器中发送请求后,开发服务器控制台中是否打印出任何附加信息?一般来说,如果有问题,会在那里打印有用的信息。

标签: google-app-engine


【解决方案1】:

试试:
http://127.0.0.1:9999

如果可行,请将localhost 添加到您的hosts 文件中。

【讨论】:

    【解决方案2】:
    pip install pil
    pip install ssl
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-14
      • 2020-03-03
      • 2012-09-27
      • 2022-09-29
      • 2015-04-10
      • 2022-11-15
      相关资源
      最近更新 更多