Search code examples
djangogoogle-app-enginedjango-nonrel

Django nonrel Models


I have been looking at the documentation on django nonrel but think i have confused my self.

I have a project using the setup instructions found at http://www.allbuttonspressed.com/projects/djangoappengine#installation and continued to setup a django application. I am making a simple news feed. Now it has come to create the models but there appears to be two ways of doing this, using models.Model or db.Model.

models.Model is the django way of doing it, and if I create a model using this it appears to use nosql, this also allows me use of the built in admin.

db.Models is the non-rel way of doing things. If I create the model using this is appears to use nosql again but this method does not let me make use of the django admin. I thought the point of django non-rel was to let me make use of the admin and a majority of the default functionality in django.

I would also like to ask what is the difference between django non-rel and pure django on app engine and how does this affect how the models are created?


Solution

  • This is incorrect:

    db.Models is the non-rel way of doing things

    Where did you get this idea? db.Models is the AppEngine way of doing things. django-nonrel allows you to use the Django way even though you're on AppEngine. As you say, the point of django-nonrel is to allow you to use the admin etc, for which you need to do things the Django way, ie models.Model.