Saturday, October 23, 2010

Run GAE SDK for Python and Django on Ubuntu Maverick

First, I make the following structure in my project's directory:
~/projects/gae/ - directory for GAE's projects
~/projects/gae/google_appengine/ - downloaded GAE sources
~/projects/gae/google_appengine/test/ - test project using GAE

So, to run this test project as well as other further projects that use GAE
  1. Download Google App Engine SDK for Python and unpack it to ~/projects/gae/.
  2. Install python-2.5
    sudo add-apt-repository ppa:fkrull/deadsnakes
    sudo apt-get update
    sudo apt-get install python2.5
    
  3. Install easy_install for Python 2.5
    cd /tmp
    wget http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
    sh setuptools-0.6c11-py2.5.egg
    
  4. Install Django 1.1 for Python 2.5
    easy_install-2.5 django==1.1.1
    
  5. Put into ~/projects/gae/google_appengine/test file
    echo "#!/bin/bash
    
    python2.5 ../google_appengine/dev_appserver.py ./" > run
    chmod a+x run
    

When you need to run development server for the Test project you should do
cd ~/projects/gae/google_appengine/test/
./run

2 comments:

  1. shouldn't be?
    python2.5 ../dev_appserver.py

    cheers

    ReplyDelete
  2. The main idea was to run "run" from the the project directory that lies at the same level as gae dir

    ReplyDelete

Note: Only a member of this blog may post a comment.