On 5/10/07, sandro dentella <[EMAIL PROTECTED]> wrote: > > hi, > > I'm trying to play with initial_data fixture. I dumpdata (json > format) > and reload it cleanly if there are no foreign key contraints on the > table. > If the tables i'm dumping have foreign keys (in my case holydays/ > nation > bith in the same fixture), I > get an error from the db that aborts the transaction and: > > 1. manage.py loaddata says nothing: worse: says: > > [EMAIL PROTECTED]:~/src/django/siti/jobs$ ./manage.py loaddata > ref.json > Loading 'ref' fixtures... > Installing json fixture 'ref' from absolute path. > Installed 112 object(s) from 1 fixture(s) > > 2. no data is loaded
Interesting. The "installed n fixtures" message is printed before the transaction is commited, which might be causing the confusion, but if the commit isn't succeeding, you should be seeing other errors (i.e., db failures). Is it possible that stderr is getting redirected somewhere other than the terminal? Failing that - Can you provide a sample model and fixture that causes this problem? Ideally less than 112 objects - if you can cut down your example to less than 10 objects, on a model with 2-3 attributes would be ideal, and should make the problem easier to track down. 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---

