Ok, I figured out the problems:

1. I turned on the verbose option to get some error messages:  python
manage.py loaddata mytest1.json --verbosity=2

2. I had my fixtures directory under my project, and not the app.
When I moved it to be under the app, loaddata found it.

3. When I did dumpdata, it dumped everything in the database, not just
the app model data.  So I edited the json file to include only the app
model data, and loaddata worked fine.

To summarize, it is possible (altho I don't know how well-recommended)
to dumpdata, change models, delete and recreate the database using
syncdb, and then loaddata, without touching SQL.

[Now I'm looking for a simpler way to dumpdata only for the model
classes, and not for all the admin stuff in the database...something
about default and custom managers? Searching...]


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