Google App Engine doesn't support SQL but GQL. That's why when you want to create Django app on Google App Engine, you have to rewrite models for Google App Engine. Even if it is really simple application.
Django-nonrel is a branch version of Django which support NoSQL database system. Using this branch, you can create an model used NoSQL database system with nearly same format of SQL database system.
In this article, I'll show you how to use Django-nonrel on Google App Engine.
Nonrelblog is a demo application of using Django-nonrel on Google App Engine. It is a simple blogging system. Permission feature of the demo application is currently commented out.
The packages below is required to run Demo application.
- Django-nonrel
-
Warning
Nonrelblog doesn't use official version of djangoappengine. The official version of djangoappengine doesn't allow to put python source files on
ROOT/src/<project_name>
directory which I often use. Forked version of it is on https://bitbucket.org/lambdalisue/djangoappengine - django-dbindexer
- django-autoload
- djangotoolbox
- django-qwert
First you have to install Google App Engine SDK for Python on your computer. Follow the instruction of official Google App Engine page.
Second open Terminal and execute commands below on your working directory.
Commands:
git clone git://github.com/lambdalisue/django-nonrelblog.git
cd django-nonrelblog
./utils/leadoff.sh install
./src/nonrelblog/manage.py syncdb
./src/nonrelblog/manage.py runserver
Finally, you can see simpleblog application on http://localhost:8080/