V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
moyan
V2EX  ›  Project Babel

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

  •  
  •   moyan · 2010-12-19 16:48:01 +08:00 · 6497 次点击
    这是一个创建于 5086 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我按教程修改app.yaml,config.py后,在Google app engine launcher 里面browse不成功,版本babel-2.4.0-RC1
    大侠们帮我看看下面是修改后的app.yaml,config.py,谢谢!!
    9 条回复    1970-01-01 08:00:00 +08:00
    moyan
        1
    moyan  
    OP
       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
        2
    moyan  
    OP
       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
        3
    moyan  
    OP
       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
        4
    moyan  
    OP
       2010-12-19 16:56:09 +08:00
    补充 安装的是Python2.5
    moyan
        5
    moyan  
    OP
       2010-12-19 23:15:03 +08:00
    大侠帮帮忙!!
    Livid
        6
    Livid  
    MOD
       2010-12-19 23:17:37 +08:00
    出错提示是什么?
    moyan
        7
    moyan  
    OP
       2010-12-21 10:32:11 +08:00
    换台机子上传成公,修改app.yaml以前是用notepad++ ,后来用Python edit修改后上传成功,
    k_angel
        8
    k_angel  
       2011-03-24 12:52:07 +08:00
    @moyan 我的不成,显示hello world 不知道是怎么回事?还有,Google对数据好像没有索引,不知道通常情况下多长时间索引啊/
    Livid
        9
    Livid  
    MOD
       2011-03-24 12:55:29 +08:00
    @k_angel 请仔细阅读说明书一步一步来:

    http://www.v2ex.com/cn/index.html
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5589 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 03:01 · PVG 11:01 · LAX 19:01 · JFK 22:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.