~/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
- Download Google App Engine SDK for Python and unpack it to ~/projects/gae/.
- Install python-2.5
sudo add-apt-repository ppa:fkrull/deadsnakes sudo apt-get update sudo apt-get install python2.5
- 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
- Install Django 1.1 for Python 2.5
easy_install-2.5 django==1.1.1
- 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
shouldn't be?
ReplyDeletepython2.5 ../dev_appserver.py
cheers
The main idea was to run "run" from the the project directory that lies at the same level as gae dir
ReplyDelete