jueves 20 de enero de 2011

Tutorial : Running django under GAE (Google App engine)


  1. Install the appengine SDK 
  2. In your project folder create a sym link to the GAE SDK :
    ln -s /opt/google_appengine google_appengine
    
    /opt/google_appengine should be your SDK directory
  3. download an unzip the following NOT in your project folder :
  4. Download the following zip files:
  5. Copy folders in your project like this : Copy the following folders into your project (e.g., django-testapp):

    django-nonrel/django => /django
    djangotoolbox/djangotoolbox => /djangotoolbox
    django-dbindexer/dbindexer => /dbindexer
    djangoappengine => /djangoappengine
  6. Configure your app.yml and ready to go as a normal django project!
Important :Many advanced Django features are not supported at the moment. A few of them are:
  • JOINs
  • many-to-many relations
  • aggregates
  • transactions (but you can use run_in_transaction() from App Engine's SDK)
  • QuerySet.select_related()

Google Analytics Alternative