Am Mittwoch, den 01.04.2009, 17:49 -0400 schrieb Adam Nelson: > How do I do a fixture for the Site model? I've tried all sorts of > different model names > > > [ > { > "model": "sites.site", > "pk": 1, > "fields": { > "domain": "example.com", > "name": "Example" > } > }, > ] > > > And I get this error: > ... > File > "/Library/Python/2.5/site-packages/django/utils/simplejson/decoder.py", line > 221, in JSONArray > raise ValueError(errmsg("Expecting object", s, end)) > ValueError: Expecting object: line 10 column 1 (char 124) > > > Any ideas for the correct model name? I've tried every possibility I > can think of.
Is the last colon }, correct? If that does not help, use dump the data of the database and see how the syntax is. Thanks, Paul
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil