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.