Search This Blog

Sunday, February 20, 2011

Setup Native Django with Google App

Summary of http://www.allbuttonspressed.com/projects/djangoappengine
by wkornewald

install GAE (on Linux, you can put it in /usr/local/google_appengine )

set up the path
export PATH=$PATH:/usr/local/google_appengine
export PYTHONPATH=/usr/local/google_appengine/lib/
(you might need to change permission on google_appengine folder so not only root can run it.)

download these:
hg clone https://bitbucket.org/wkornewald/django-testapp
hg clone https://bitbucket.org/wkornewald/django-nonrel
hg clone https://bitbucket.org/wkornewald/djangotoolbox
hg clone https://bitbucket.org/wkornewald/djangoappengine
hg clone https://bitbucket.org/wkornewald/django-dbindexer

Copy the following folders into your project (e.g., django-testapp):
  • django-nonrel/django => /django
  • djangotoolbox/djangotoolbox => /djangotoolbox
  • django-dbindexer/dbindexer => /dbindexer
  • djangoappengine => /djangoappengine


edit app.yaml
application: your_app_id (name)

python manage.py runserver

check your http://localhost:8000/

No comments: