我正在尝试使用数据存储作为数据库在谷歌应用引擎上实现 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__
初始数据.json
[
{
"model": "recipe.Recipes",
"fields": {
"title": "Roasted Beef"
}
}
]
模型.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
都给出相同的错误