Compile PyDev Google App Engine Project with Aptana in Windows 7

Needed Sofware :

Google App Engine SDK for Python(Windows) GoogleAppEngine-1.6.1.msi
Aptana Studio 3.0.7 http://aptana.com/products/studio3/download
Pyhton 2.54 For x86 processors: python-2.5.4.msi

 

1. Install the three required software.
2. Open Aptana Studio 3
3. Select the default workspace (Remember this path)

4. Let Studio config Git support.

We need to set the Python interperters first.

5.Go to Window->Perferences->Pydev->Interpreter – Python

6.Click New

7. Click Browse-> Find the Python25 folder(default c:Python25)->choose python.exe->Click ok

8. Leave the setting default then click ok

9. Then Python interperters in Aptana Studio 3 are properly set.

Now open a Google App Engine Project.

10. Go to File->New->Other

11. Choose PyDev Google App Engine Project->Click Next

12. Enter project name “helloword” and change the Grammer Version to 2.5->Click Next

Now we need to set the path for Google App Engine launcher.

13. Click browse and find the google app engine sdk folder.
(default C:Program Files (x86)Googlegoogle_appengine)

14. Leave the default setting-> Click OK.

15. Click Finish

16. Click Yes.

Now Create a new helloworld.py and app.yaml in the helloworld directory.

17. Right click the helloword project then New->File,

18. In the File name field, enter helloworld.py Click finish. Repeat procedure for app.yaml.

19. Give helloworld.py the following contents:

print ‘Content-Type: text/plain’
print ”
print ‘Hello, world!’

20. Give app.yaml the following contents:

application: helloworld
version: 1
runtime: python
api_version: 1

handlers:
– url: /.*
script: helloworld.py

21. Press Ctrl+F11 to compile. Leve the default then click ok.

22.  Review the console for outopt.

Done!

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *