views:

23

answers:

1

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: [email protected]
    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.

+1  A: 

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.

Aaron