How to create a PyDev project with DJango and Google App Engine support

Posted by – December 13, 2011

PyDev is an awesome plugin for Python development under Eclipse, with this plugin you can easily create a Django project or a Google App Engine project, but not a project which uses Django and run under Google App Engine at same time.

Here’s what I did to create a project which has support for both features:

  1. Download and installation of Eclipse
  2. Installation of PyDev Plugin
  3. Installation of GAE SDK 1.6.0 for Python
  4. Installation of Google Plugin for Eclipse
  5. Creation of Python project with Google App Engine support
  6. Creation of DJango project from command line
  7. Copy of all Django project structure to src folder of Eclipse Project
  8. Edit (see below)

The latest step is edit the script specifying the version of DJango to load on GAE, please option and add the lines below:

from google.appengine.dist import use_library
use_library('django', '1.2')

After that you should be able to have the GAE context menu options available for this project and your project will be ready for upload.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>