请教,我的本地测试怎么不能成功

2010-12-19 16:48:01 +08:00
 moyan
我按教程修改app.yaml,config.py后,在Google app engine launcher 里面browse不成功,版本babel-2.4.0-RC1
大侠们帮我看看下面是修改后的app.yaml,config.py,谢谢!!
6494 次点击
所在节点    Project Babel
9 条回复
moyan
2010-12-19 16:48:32 +08:00
config.py

import os

mobileme_enabled = False
mobileme_username = ''
mobileme_password = ''

if os.environ['SERVER_SOFTWARE'] == 'Development/1.0':
twitter_consumer_key = ''
twitter_consumer_secret = ''
else:
twitter_consumer_key = ''
twitter_consumer_secret = ''

fts_enabled = False
fts_server = ''
fts_username = ''
fts_password = ''

# change this for deploy is you can registration from http://www.google.com/recaptcha
recaptcha_public_key = '6LdQvL8SAAAAAGWmh3nrBdIOtWyRqQVW - G0dSZjD'
recaptcha_private_key = '6LdQvL8SAAAAAH4XxMCVverEZEpRjSpshMtpW3Vy'
moyan
2010-12-19 16:49:12 +08:00
application: tiyugk
version: 1
runtime: python
api_version: 1

default_expiration: "10d"

derived_file_type:
- python_precompiled

handlers:
- url: /favicon.ico
static_files: static/img/favicon.ico
upload: static/img/favicon.ico

- url: /apple-touch-icon.png
static_files: static/img/apple-touch-icon.png
upload: static/img/apple-touch-icon.png

- url: /static
static_dir: static

- url: /settings
script: member.py

- url: /settings/.*
script: member.py

- url: /member/.*
script: member.py

- url: /backstage
script: backstage.py

- url: /backstage/.*
script: backstage.py

- url: /new/.*
script: topic.py

- url: /t/.*
script: topic.py

- url: /r/.*
script: topic.py

- url: /edit/.*
script: topic.py

- url: /delete/.*
script: topic.py

- url: /hit/.*
script: topic.py

- url: /index/.*
script: topic.py

- url: /avatar/.*
script: avatar.py

- url: /index.xml
script: feed.py

- url: /feed/v2ex.rss
script: feed.py

- url: /feed/.*
script: feed.py

- url: /about
script: page.py

- url: /faq
script: page.py

- url: /mission
script: page.py

- url: /advertise
script: page.py

- url: /advertisers
script: page.py

- url: /notes/?
script: notes.py

- url: /notes/.*
script: notes.py

- url: /api/.*
script: api.py

- url: /twitter/?
script: t.py

- url: /twitter/.*
script: t.py

- url: /time/?
script: misc.py

- url: /mapreduce(/.*)?
script: mapreduce/main.py
login: admin

- url: /images(/.*)?
script: images.py

- url: /place/([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})
script: place.py

- url: /remove/place_message/(.*)
script: place.py

- url: /_ah/mail/.+
script: mail.py
login: admin

- url: /_ah/xmpp/.+
script: xmpp.py
login: admin

- url: /remote_api
script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
login: admin
moyan
2010-12-19 16:49:31 +08:00
- url: /block/(.*)
script: member.py

- url: /unblock/(.*)
script: member.py

- url: /webluker-verif.html
script: misc.py

- url: /favorite/(.*)
script: favorite.py

- url: /unfavorite/(.*)
script: favorite.py

- url: /follow/(.*)
script: favorite.py

- url: /unfollow/(.*)
script: favorite.py

- url: /my/(.*)
script: my.py

- url: /add/star/(.*)
script: queue.py
login: admin

- url: /minus/star/(.*)
script: queue.py
login: admin

- url: .*
script: main.py

inbound_services:
- mail
- xmpp_message

builtins:
- datastore_admin: off
moyan
2010-12-19 16:56:09 +08:00
补充 安装的是Python2.5
moyan
2010-12-19 23:15:03 +08:00
大侠帮帮忙!!
Livid
2010-12-19 23:17:37 +08:00
出错提示是什么?
moyan
2010-12-21 10:32:11 +08:00
换台机子上传成公,修改app.yaml以前是用notepad++ ,后来用Python edit修改后上传成功,
k_angel
2011-03-24 12:52:07 +08:00
@moyan 我的不成,显示hello world 不知道是怎么回事?还有,Google对数据好像没有索引,不知道通常情况下多长时间索引啊/
Livid
2011-03-24 12:55:29 +08:00
@k_angel 请仔细阅读说明书一步一步来:

http://www.v2ex.com/cn/index.html

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/6055

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX