正在加载...

Google App Engine 入门:开发环境

四月 28th, 2008

(本文译自:Google App Engine Getting Started)

Google 提供了一个Google App Engine 软件开发包(SDK),用于让开发者进行网站应用程序开发或上传已经完成的应用。

这个开发包包含:

  • 一个web服务程序,用来模拟App Engine应用环境
  • 一个本地版的数据存储方案
  • 本地模拟的Google帐号集成
  • 支持使用Api来分析URL和发送邮件
  • 这个开发包可以运行在所有安装了Python2.5的机器上,并且支持Windows, Mac OS X 和Linux系统。

因为这个开发包是以Python2.5为基础的,所以你必须先要在你的机器上安装Python2.5(必须是2.5版本).Mac OS X 10.5 用户可能已经安装了Python2.5,某些版本的Linux自带Python环境,但是版本可能比较低,需要升级成2.5版本。

接下来:下载并安装App Engine SDK

在这个入门教程中,我们需要用到下面的两个命令:

Windows或Mac OS X的安装程序会将这两个命令放到命令行运行路径中。在安装结束后,你可以直接通过命令行执行。

如果你使用的是Zip压缩包格式的SDK,你可以google_appengine目录下找到它们。

接下来...

本地开发环境,让你可以轻松的开发和测试你的应用。并且保持和发布后的环境完全的一致。下面,让我们开始编写代码吧:

下一章: Hello, World!

相关阅读:



“Google App Engine 入门:开发环境” 共有13条留言

  • xuming On

    @rthr
    貌似环境没配置好,将Python加入到系统的Path路径,然后再试试

  • rthr On

    Microsoft Windows XP [版本 5.1.2600]
    (C) 版权所有 1985-2001 Microsoft Corp.

    C:\Documents and Settings\Abin>cd C:\Program Files\Google\google_appengine\

    C:\Program Files\Google\google_appengine>appcfg.py update micolog/
    C:\Program Files\Google\google_appengine\appcfg.py:41: DeprecationWarning: the s
    ha module is deprecated; use the hashlib module instead
    os.path.join(DIR_PATH, 'lib', 'antlr3'),
    C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver_lo
    gin.py:33: DeprecationWarning: the md5 module is deprecated; use hashlib instead

    可否提示以上错误如何解决?

  • rthr On

    以下错误在Google Groups中找不出答案,盼博主指点一二:
    >
    Warning: Prerequisites for App Engine development are missing!

    A valid python binary must be available. In addition,
    the App Engine SDK must be installed. Here are the current
    values we found:

    python = None
    App Engine SDK root = C:\Program Files\Google\google_appengine

    Please install the missing pieces and restart the launcher.
    If these are installed but the Launcher failed to find them,
    you can configure their location by editing Launcher preferences.

    The Launcher preferences can be modified by selecting Edit > Preferences

    我更换过python 2.52和2.6,均无法解决。app id已更换,且appcfg.py update micolog/的过程中没有提示任何错误。最后的结果是A server error occurred. Please contact the administrator.

    谢谢了。

  • SEO On

    thx for sharing!

    good article!

  • shuil On

    所以你必须先要在你的机器上安装Python2.5(必须是2.5版本)
    ==============
    请问2.6可以吗?

  • shuil On

    所以你必须先要在你的机器上安装Python2.5(必须是2.5版本)
    ==============
    请问2.6可以吗?

  • 巫云 On

    请问,有没有可以把GAE上托管程序的最新版本下载到本地的办法呢?

  • 徐明 On

    我没在linux下实作过,不明白设置path什么意思。

  • amao On

    请问一下,我在linux下解压出*.zip文件了,可是怎么样设置PATH呢?请帮忙。

  • 野鸭 On

    基本不需要什么特别的配置。 1. 安装 Python 2. 安装 Google App Engine 的 SDK

  • Belen On

    不明白怎么配置开发环境,可不可以用图形界面来讲解一下。 Python 2.5已经安装了

  • Google App Engine入门:简介 | 徐明的博客 On

    [...] « Google App Engine限制只能创建三个应用 Gooele App Engine 入门:开发环境 [...]

我要留言


google reader 抓虾
bloglines my yahoo
哪吒 鲜果
* 更多订阅本站方式请看 订阅帮助