From 37937e8a4a7ccc304fede05d25cf14c41c9a0e99 Mon Sep 17 00:00:00 2001 From: Mikko Ohtamaa Date: Wed, 5 Jan 2011 15:40:26 +0200 Subject: [PATCH] Updating buildout --- README.rst | 38 ++++++++++++++++++++++++++++++++++++++ buildout.cfg | 20 ++++++++++++++++++-- 2 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 README.rst diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..0166b43 --- /dev/null +++ b/README.rst @@ -0,0 +1,38 @@ +============================================== + django-nonrel and Google App Engine buildout +============================================== + +.. contents :: + +Introduction +============ + +Easily install and manage django-nonrel based Google App Engine applications using buildout command. + +The buildout configuration uses Mr. Developer extension to pull all ``django-nonrel`` +and ``djangoappengine`` bits together and set-up them for you. + +Usage +===== + +You must use App Engine compatible Python version:: + + python bootstrap.py + +Then:: + bin/buildout + +Now you can run Django manage:: + + bin/django --version + + 1.2.4 + +The buildout ships with a sample project skeleton called ``my.sampleproject``. You can clone this +skeleton and modify it to start building your won application. + +To deploy your own application you can create a ``buildout.cfg`` which extends this existing buildout. +Edit ``buildout.cfg``. + + + diff --git a/buildout.cfg b/buildout.cfg index 9402461..c19d71d 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -3,6 +3,11 @@ parts = django eggs = + Django + djangotoolbox + django-nonrel + django-dbindexer + djangoappengine my.sampleproject extends = @@ -12,6 +17,8 @@ extensions = find-links = +auto-checkout = * + # Add additional eggs here eggs = @@ -20,18 +27,27 @@ eggs = develop = src/my.sampleproject -# Define version control repositories where to fetch the evil stuff +# Define version control repositories where to fetch the evil stuff. +# All these should be distributed as Python eggs. +# You can extend this section and add your own version control repositories. [sources] django-nonrel = hg https://bitbucket.org/wkornewald/django-nonrel djangotoolbox = hg https://bitbucket.org/wkornewald/djangotoolbox django-dbindexer = hg https://bitbucket.org/wkornewald/django-dbindexer djangoappengine = hg https://bitbucket.org/wkornewald/djangoappengine -django-testapp = hg https://bitbucket.org/wkornewald/django-testapp +django-testapp = hg https://bitbucket.org/wkornewald/django-testapp egg=false [django] recipe = djc.recipe project = my.sampleproject +# django-nonrel subprojects are not properly eggified and contain non-standard directory +# layout. Thus, we need to do some evil things here +extra-paths = + src/django-testapp + src/dbindexer + src/django-dbindexer + src/djangoappengine