google-app-engine-django loading fixtures

I'm having troubles loading fixtures on GAE with google-app-engine-django. I receive an error that says "DeserializationError: Invalid model identifier: 'fcl.User'"

./manage.py loaddata users

I'm trying to load a fixture that has the following data:

- 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'

do I need to do any other qualifying of my model name? The fixture lives at fcl/fixtures/users.yaml and model lives in at 'fcl/models.py'.

Any help would be greatly appreciated.

Answers


Turns out the issue was caused because I wasn't declaring my model correctly in models.py

When using google-app-engine-django, each model should be a subclass of:

appengine_django.db.BaseModel

after fixing this, it works. I also needed to put a valid pk: value in my fixture.


Need Your Help

Dozer: CustomerConverter that is Internationalization/Localization aware, how to implement?

java javabeans dozer

I have not yet used Dozer, but Dozer seems promising. I have read quite a lot of the documentation but I am still completely clueless about what I need to do to write a CustomConverter that is

Brute force Algorithm for creation of Sudoku Board

c# algorithm sudoku

What I am developing is that initially the entire sudoku board is empty.