Re: Trying to get fixtures working - problem with Site

2007-03-13 Thread Russell Keith-Magee
On 3/13/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > > How are you producing your data file? Is this failure caused by a data > > file produced by dump, or is it manually created? Can you provide a > > small fixture file (and model) that exhibits the problem? > > I created my application,

Re: Trying to get fixtures working - problem with Site

2007-03-13 Thread Chris Moffitt
> Hrm. The test case checks Null values for every data field, so that > shouldn't be a problem. The only simple reason I can think of is a > required field that doesn't have a representation in your data file. > > How are you producing your data file? Is this failure caused by a data > file

Re: Trying to get fixtures working - problem with Site

2007-03-12 Thread Russell Keith-Magee
On 3/13/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > Russell Keith-Magee wrote: > > Can you provide a specific example? Like I said, I'm adding a unit > > test to cover all the edge cases of serialization - if you have a > > specific example that is failing, I'd like to make sure that your >

Re: Trying to get fixtures working - problem with Site

2007-03-12 Thread Chris Moffitt
Russell Keith-Magee wrote: > Can you provide a specific example? Like I said, I'm adding a unit > test to cover all the edge cases of serialization - if you have a > specific example that is failing, I'd like to make sure that your > example is covered in the test. > > You hit it. It was a

Re: Trying to get fixtures working - problem with Site

2007-03-12 Thread Russell Keith-Magee
On 3/12/07, Chris Moffitt <[EMAIL PROTECTED]> wrote: > > Installing xml fixture 'initial_data' from '/full/path/shop/fixtures'. > Problem installing fixture '/full/path/shop/fixtures/initial_data.xml': > Invalid value: 'site' should be a 'django.contrib.sites.models.Site'> instance, not a > >

Trying to get fixtures working - problem with Site

2007-03-12 Thread Chris Moffitt
I've been trying to get the fixtures working in order to beef up the unit tests with my app. I'm running into an issue and wonder if anyone else has seen this. I can serialize the data just fin. When I try to load the data, I get the error below. I've tried this with the XML and brand new