我尝试使用数据存储区作为数据库在谷歌应用引擎上实现django-nonrel,但我在本地开发服务器上加载灯具时遇到错误
DeserializationError: Problem installing fixture gae_django/recipe/fixtures/initial_data.json': Invalid model identifier: 'recipe.Recipes'
这是我的文件夹结构
├──gae_django
├── autoload
├── dbindexer
├── django
├── djangoappengine
├── djangotoolbox
├── functional_test
├── recipe
│ ├── fixtures
│ └ └──initial_data.json
│ └── templates
│ └── models.py
│ └── tests.py
└── cooks
└── __pycache__
initial_data.json
[
{
"model": "recipe.Recipes",
"fields": {
"title": "Roasted Beef"
}
}
]
models.py
from google.appengine.ext import ndb
class Recipes(ndb.Model):
title = ndb.StringProperty()
desc = ndb.StringProperty()
我试图运行
python manage.py test recipe
python manage.py loaddata recipe/fixtures/initial_data.json
两者都给出了同样的错误