Update: I noticed that objects are saved (and available in the data warehouse viewer) when I save them using views (and the create_object function). But when I use the shell (manage.py shell) to create and save a new object, it is not bound to the repository (but can still be seen in Tes.objects.all ()).
I started playing django-nerel with the Google appengine, and I get upset with things as easy as saving entities.
I installed my environment as described in the instructions . I managed to run the sample application and it works fine. I would like to expand it so that it saves my essence in storage. For this:
I added a new django module with models.py:
from django.db import models class Tes(models.Model): name = models.CharField(max_length=150)
I created a script to save some data:
import os import sys sys.path.append("d:\\workspace\\project\\") os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from testmodule.models import Tes t = Tes(name="test") t.save() tes = Tes.objects.all() for t in tes: print t.name
The script works without errors. When I run it several times one by one, it prints more and more βtestβ lines. But when I try to start it after a minute break, Tes.objects.all () returns nothing. During this time, the data warehouse file will change its size (but maybe it's just some kind of logs). When I look at http: // localhost: 8000 / _ah / admin / datastore , I can only select AhAdminXrsfToken from the selection box.
Anyway, what am I missing? Where can I find some magazines that will tell me what is wrong?
source share