Eclipse + PyDev => Google AppEngine

2228阅读 0评论2009-07-23 zieckey
分类:Python/Ruby

Eclipse + PyDev => Google AppE ...
1. install eclipse plug-in PyDev: http://pydev.sourceforge.net/updates/, restart eclipse
2. set python in eclipse: eclipse->window->preference->PyDev->Interpreter->python, choose python.exe
3. create a pydev project with python 2.5. (important!!!)
4. set project properties, pydev->pythonPath->External Libraries->add source folders    
        - google_appengine    
        - google_appengine\lib\django    
        - google_appengine\lib\webob    
        - google_appengine\lib\yaml\lib
        - google_appengine\google\appengine\ext
5. use src folder as app_engine root dir
6. The last thing we need to do now is to add a user-defined starter for our Google App Engine development server:
    * Go to Run -> Open Run Dialog.
    * Choose Python Run and add a new launch configuration (document icon with the plus sign in the top left of the dialog):
    * Name your run configuration.
    * Under "Project", add your Google App Engine Python project.
    * Under "Main Module", enter the location of the "dev_appserver.py" script.
    * Change to the "Arguments" tab and enter "${project_loc}/src" (包括引号) as first argument:
    * Click on Apply to save your changes.
    * Click on Run to run your project.
    
   
参见:
 

上一篇:Python中常用字符串 函数
下一篇:CURL异步调用和遇到的CURL内部问题