Re: Dependency problem in flatpages...

2006-08-13 Thread John Szakmeister
- Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: [snip] > Have a poke around in django/core/management.py in the > _get_sql_model_create() function and see if you can work out why we're > getting this wrong. > > The fact that the generated SQL has a "...REFERENCES ..." clause on the > problem

Re: Dependency problem in flatpages...

2006-08-11 Thread John Szakmeister
[snip] > Looks like the problem is in _get_many_to_many_sql_for_model(). > Unfortunately, it doesn't check to see whether or not the table exists > before generating a reference. Is there somewhere else where the > models are ordered by dependency before creation? Looking further, you're right

Re: Dependency problem in flatpages...

2006-08-11 Thread John Szakmeister
- Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2006-08-10 at 05:55 -0400, John Szakmeister wrote: > > Now that the magic has been removed, and Django released 0.95, I > decided to start porting my applications over. I knew the merge of > magic-removal was coming, so I never deploy

Re: Dependency problem in flatpages...

2006-08-10 Thread John Szakmeister
- Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: [snip] > Have a poke around in django/core/management.py in the > _get_sql_model_create() function and see if you can work out why we're > getting this wrong. > > The fact that the generated SQL has a "...REFERENCES ..." clause on the > problem

Re: Dependency problem in flatpages...

2006-08-10 Thread Malcolm Tredinnick
On Thu, 2006-08-10 at 05:55 -0400, John Szakmeister wrote: > Now that the magic has been removed, and Django released 0.95, I decided to > start porting my applications over. I knew the merge of magic-removal was > coming, so I never deployed the apps. So, I decided to dump the tables that >

Dependency problem in flatpages...

2006-08-10 Thread John Szakmeister
Now that the magic has been removed, and Django released 0.95, I decided to start porting my applications over. I knew the merge of magic-removal was coming, so I never deployed the apps. So, I decided to dump the tables that I had (there was no useful information in them) and start over. We