[Dev-flock] new fixture error
Daniel Ring
danring at MIT.EDU
Thu Oct 11 10:17:04 EDT 2007
Did this not work for you? Even after './manage.py reset db'?
"For some reason, './manage.py loaddata database/db/fixtures/santa.json'
fails with an error about a missing article. If you run the command 3
or 4 times, it should eventually succeed, and this is okay, because the
fixtures have unique ids, so they will just overwrite old entries rather
than adding duplicates."
Sean Driedger wrote:
> I don't know about Lucy & Mike, but I'm still getting the following error:
> /C:\dev\tm\src>python manage.py loaddata database\db\fixtures\santa.json
> Loading 'database\db\fixtures\santa' fixtures...
> Installing json fixture 'database\db\fixtures\santa' from absolute path.
> Problem installing fixture 'database\db\fixtures\santa.json': Article
> matching query does not exist./
> /
> /I've tried a few times with django versions 6269 and 6473 (current) -
> no luck. Anything I'm missing?
> Sean
>
> Daniel Ring wrote:
>> http://code.djangoproject.com/changeset/6269
>>
>> Try to keep your Django checkout updated. And - just in case - we're
>> using the development version, not 0.96. Both my Django checkout and
>> the one on the server are kept within a day or two of current ...
>> differences in revision like this won't often cause problems, but it's
>> good to rule it out preemptively.
>>
>> If updating Django doesn't fix it, let me know.
>>
>> Dan
>>
>>
>> Mike Eggar wrote:
>>
>>> I get something similar,
>>> Installing json fixture 'database/db/fixtures/santa' from absolute path.
>>> Problem installing fixture 'database/db/fixtures/santa.json':
>>> on_create() takes exactly 5 non-keyword arguments (4 given)
>>>
>>>
>>>
>>>> I think you just need to loaddata:
>>>>
>>>> lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src
>>>> $ ./manage.py loaddata database/db/fixtures/santa.json
>>>>
>>>> but I get this error:
>>>>
>>>> Loading 'database/db/fixtures/santa' fixtures...
>>>> Installing json fixture 'database/db/fixtures/santa' from absolute
>>>> path.
>>>> Problem installing fixture 'database/db/fixtures/santa.json':
>>>> Article matching query does not exist.
>>>>
>>>> after doing a reset and sync first.
>>>>
>>>> On Wed, 10 Oct 2007, Mike Eggar wrote:
>>>>
>>>>
>>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Dev-flock mailing list
> Dev-flock at mit.edu
> http://mailman.mit.edu/mailman/listinfo/dev-flock
More information about the Dev-flock
mailing list