On Wed, Oct 22, 2008 at 8:40 PM, perchance <[EMAIL PROTECTED]> wrote:
> I think added "null=True" to all each field in my models.py and ran
> dumpdata again. It seemed to hum along fine, but now I'm running into
> a new problem. I think dumpdata is aceing my Macbook Pro's memory. The
> database I'
You know, I think that did it. For anybody who ever follows in these
footsteps of error and misdeed, here's what I did to sort out my
tables.
ALTER TABLE app_model CHANGE fk1_id fk1_id int(11) NULL;
ALTER TABLE app_model CHANGE fk2_id fk2_id int(11) NULL;
ALTER TABLE app_model CHANGE fk3_id fk3_i
You know, I think that did it. For anybody who ever follows in these
footsteps of error and misdeed, here's what I did to sort out my
tables.
ALTER TABLE app_model CHANGE fk1_id fk1_id int(11) NULL;
ALTER TABLE app_model CHANGE fk2_id fk2_id int(11) NULL;
ALTER TABLE app_model CHANGE fk3_id fk3_i
On Wed, Oct 22, 2008 at 6:37 PM, perchance <[EMAIL PROTECTED]> wrote:
>
> Thanks for the reply. I did not syncdb with any blank=True or
> null=True options on the foreignkeys, so the MySQL table does not
> allow null values. I just ran some group and counts from the mysql
> shell and it does indee
Thanks for the reply. I did not syncdb with any blank=True or
null=True options on the foreignkeys, so the MySQL table does not
allow null values. I just ran some group and counts from the mysql
shell and it does indeed show that a number of records have a zero in
their fk_id field. So I'm now lea
On Wed, Oct 22, 2008 at 6:14 PM, perchance <[EMAIL PROTECTED]> wrote:
>
> [trimmed]
> python manage.py dumpdata app_label --traceback --indent 4 > fixtures/
> app_label.js
>
> And the traceback I get looks like this, with a sanitized model name
> substituted for the real thing.
>
> """
> Traceback
Hey all,
I recently ported a half dozen homebrewed applications from 0.96 to
1.0 (awesome!) and now I'm in the process of bumping them over from
MySQL to Posgres so I can get ripping on GeoDjango (double awesome!).
This seemed like a great chance to give manage.py's ingenious
"dumpdata" command
7 matches
Mail list logo