Django + Pydev/Eclipse + Google App Engine - possible?

Has anyone been able to get Google App Engine/Django working in Pydev/Eclipse? I tried this but had difficulty getting Pydev to recognize all of the externally linked folders (django plugins) that I was referencing. I ended up copying all of those folders into the project en masse, rather than referencing them, resulting in a massively bloated project folder - it was really an unworkable solution that eventually made me give up the whole project. So, I'm wondering if anyone has tried this or has any idea what I might have been doing wrong. (Keep in mind this was my first attempt at using Pydev, Django, App Engine and Python!!)


I haven't personally set it up but i did see this tutorial on how to do it:

Pydev 1.4.6 (still only available in the nightly builds) has some special support to easy in the configuration. See:

This tutorial shows how to configure Aptana (with PyDev installed) to be your coding and debugging platform for AppEngine. Similarly you can add Django libraries to Aptana too.

This question hasn't been replied to for some time and things have changed, so I thought I would provide and update.

PyDev now includes a Google App Engine configuration out of the box and you can debug and run GAE projects out of the box, this includes Django.

Just install GAE and the latest Eclipse/PyDev on your machine then create a GAE project and point PyDev at your versions of Python and Google App Engine.

appengine 1.31 Django 1.1 pydev 1.5.4 OS Ubuntu 9.10

eclipse .pydevproject file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?>
<pydev_variables_property name="org.python.pydev.PROJECT_VARIABLE_SUBSTITUTION">
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
<pydev_pathproperty name="org.python.pydev.PROJECT_EXTERNAL_SOURCE_PATH">
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.6</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>


eclipse project folder - app.yaml - index.yaml - - - - .project - .pydevproject - (unable to load) -

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

from django.conf import settings

ROOT_URLCONF = 'urls',
PROJECT_NAME = 'pythonleggo',
SETTINGS_MODULE = '.settings',
ADMINS = ('elvis', ''),
LANGUAGE_CODE = 'en-us',
SITE_ID = 1,
USE_I18N = True,
SECRET_KEY = 'shhh',


#os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'

import django.core.handlers.wsgi
from google.appengine.ext.webapp import util

def main():
    # Run Django via WSGI.
    application = django.core.handlers.wsgi.WSGIHandler()
if __name__ == ' __main__':

eclipse run: /usr/bin/python2.6 -u /home/elvis/google_appengine/

The PYTHONPATH that will be used is:


I could not get the settings file to load using os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' . It appeared to be stripped from the environ that django received. I used settings.configure which appeared to work correctly. At this point I only have the default django page loading in appspot.

I originally linked to this tutorial. Pydev now has Django support so this is probably less relevant. It may still be useful for figuring out how to make them all work together though. You could also try looking at this blog post.

I've just started with Python and the Google App Engine today. I think we both banged our heads against the same wall with external referencing.

I've tried deploying the google-app-engine-django project for my app. I've extracted everything and I have under my root the /appengine_django and /django folder.

I've added them as source folders, and I've added the /google_appengine/google folder as an external reference.

Normally, this all made sense to me. Each contained the __ init module. Still, when I tried to ctr+click on any of the import statements it couldn't resolve the path to the modules.

Strikingly, you do not import the immediate folder that contains an __ init To properly reference packages you import the parent folder that contains the package duh! That also means that, since I didn't want to use a /src folder, the actual project folder should be added as a source reference to get the /appengine_django and /django to be recognized as source folders.

With that done, everything is running smoothly. I guess it's to show I have more reading up to do on Py.

Here is an other tutorial that might help. The eclispe version might be a bit old but it should get you far enough to get a working project.

It has complete eclipse set up

It has complete gae set up

It has complete django set up

And then explains how to combine those two projects into one gae project.

I hope this helps others who are just starting out

Need Your Help

example zest layouts

algorithm layout zest

Has anyone created a library of zest layout algorithms other than the ones highlighted here?

How to get all sub-elements of an element tree with Python ElementTree?

python xml elementtree

I want to find a way to get all the sub-elements of an element tree like the way ElementTree.getchildren() does, since getchildren() is deprecated since Python version 2.7, I don't want to use it

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.