Aptana Studio是一个非常不错的Web程序开发环境支持Php、RoR、Jaxer,自从Aptana收购了pydev以后,在Aptana Studio里开发使用python语言的程序框架就变成了现实,对我来说有一个可视化的开发环境有时候还是很方便的。Aptana Studio配置插件的方法基本和eclipse一样:
  1. 安装Aptana的pydev插件
    菜单里选择:
    Help>Software Update>Find and Install...>Search for new feathures to install>New remote site...输入
    • name:pydev
    • url:http://pydev.sourceforge.net/updates/
  2. 然后finish,不要勾选Pydev Optional Extensions一路next下去,intall all。
  3. 为pydev插件设置python环境变量:
    Windows>Preference...>Pydev>Interpreter - Python
    在Python Interpreters(eg.:python.ext)选卡的New...里面选中你的python文件位置,ubuntu下是/usr/bin/python这个文件,OK。
  4. 新建pydev项目:
    File>New>Other...>Pydev>Pydev Project
    Project type里面选择python 2.5,finish。
  5. 为项目添加google_appengine支持:
    在Pydev Package Explorer里面右键点选中项目,菜单里选择Properties,在External Source Folders里面使用Add source folder添加你google_appengine程序的位置:
    • google_appengine
    • google_appengine/lib/django/
    • google_appengine/lib/webob/
    • google_appengine/lib/yaml/lib/
  6. 配置运行环境:
    菜单里面选择Run>run...>Python Run
    • Project里面选择你的项目
    • Main Module里面选中google_appengine/dev_appserver.py
    • (x) = Arguments的Program arguments里面添加:
      • "${project_loc}/src"
      • --port=9999
  7. 最后Run。