On 9/20/07, johnny <[EMAIL PROTECTED]> wrote:
>
> Problem installing fixture 'c:\mysite\apps\category\fixtures
> \initial_data.yaml': Invalid model identifier:
> 'apps.category.models.Category'
>
> initial_data.yaml
> [{
>         "pk": "1",
>         "model": "apps.category.models.Category",
>         "fields": {
>            "name": "Test"}
>            }]

Erm... this isn't a YAML fixture. It's a JSON fixture. It's not
surprising this is giving you difficulty when you import.

If you want to dump YAML output, you need to specify --format=yaml
when you run dumpdata.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to