我在用googleappengine django加载GAE上的fixture时遇到了问题。我收到一个错误,它显示“反序列化错误:无效的模型标识符:”fcl.用户'“
./manage.py loaddata users
我正在尝试加载包含以下数据的fixture:
- model: fcl.User fields: firstname: test lastname: testerson email: test@example.com user_id: '981167207188616462253' status: active usertype: player creationtime: '2010-08-29 00:00:00'
我是否需要对我的车型名进行其他资格认证?固定装置的寿命为fcl/fixtures/用户.yaml模特就住在公寓里/模型.py'. 在
任何帮助都将不胜感激。在
结果问题是因为我没有在中正确声明我的模型模型.py在
当使用google app engine django时,每个模型都应该是以下对象的子类:
修好这个之后,就可以了。我还需要在fixture中放入一个有效的pk:value。在
相关问题 更多 >
编程相关推荐