Python google应用程序引擎数据存储django Nonl加载夹具上的模型标识符无效
我试图使用数据存储作为数据库在google应用程序引擎上实现django Unrel,但在本地开发服务器上加载fixture时出错Python google应用程序引擎数据存储django Nonl加载夹具上的模型标识符无效,python,google-app-engine,google-cloud-datastore,django-nonrel,django-fixtures,Python,Google App Engine,Google Cloud Datastore,Django Nonrel,Django Fixtures,我试图使用数据存储作为数据库在google应用程序引擎上实现django Unrel,但在本地开发服务器上加载fixture时出错 DeserializationError: Problem installing fixture gae_django/recipe/fixtures/initial_data.json': Invalid model identifier: 'recipe.Recipes' 这是我的文件夹结构 ├──gae_django ├── autoload
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__
初始_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
两者都给出相同的错误请尝试recipe.models。Recipes@RyanB不,不起作用,但我想我只是感到困惑,因为显然使用django.db导入模型类配方(models.Model)中的
code
是有效的,而且gae和django之间的转换已经由djangoappengine处理,我可以用django的方式编码