A simple trial of google_app_engine in the cloud computing tool series (1)

Source: Internet
Author: User

Recently, I was bored. My company had plenty of project time and had nothing to worry about. I wanted to find a few cloud computing software to play with and get familiar with the process, this article mainly records the problems that occur in the simple process of using Google App Engine in a bottle.

First, let's briefly introduce Google App Engine:

Google App Engine allows you to run your network applications on Google's infrastructure. Google App Engine Applications are easy to build and maintain, and can be easily expanded based on your traffic and data storage needs. With the Google App Engine, you no longer need to maintain the server: you only need to upload your application, it can immediately provide services for your users.

(The above content from Baidu encyclopedia) Address: http://baike.baidu.com/view/1524918.htm

After learning about Google App Engine, we started to configure Google App Engine in the python environment:

I. system environment:

1. Operating System: Windows XP SP3 32-bit

Ii. Required software packages:

1. Google App Engine Python SDK: http://code.google.com/intl/zh-CN/appengine/downloads.html#Google_App_Engine_SDK_for_Python

Since my system is 32-bit XP, I chose the GoogleAppEngine-1.6.0.msi package.

2. ActivePython-2.5.6: http://www.activestate.com/activepython/downloads

Since Google defaults to python2.5 and 2.7, we download the ActivePython-2.5.6.10-win32-x86.msi package here.

Iii. installation steps:

1. Click the two installation packages to automatically install them ~~

2. Start debugging the first program Hello world.

1. Create a helloworld folder on drive C

2. Create a New py file in the folder with the following content:

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

There is no difficulty in the above steps. The configuration file app. yaml is created after the tangle. The simple yaml configuration is as follows:

application: helloworldversion: 1runtime: pythonapi_version: 1handlers:- url: /.*  script: helloworld.py

Note:

1. No space can be entered.

2. Tabs cannot be used to replace spaces.

3. There are two spaces in front of the script! Otherwise, a map value error is reported.

Write the app. after yaml, open the launch interface of the Google App Engine, select an existing application in the file, set the path to the helloworld folder we created, and click the run button to run it, as follows:

Click Browse to view the application. The result is as follows:

TIPS:

If the application fails to run, click query logs. If the problem is caused by yaml, click Edit to modify it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.