Re: manage.py syncdb not working

2010-08-25 Thread davidchambers
recreate my database, then run > > syncdb etc to make sure I’ve got a clean start.  Probably not practical once > > I get into production. > > > From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] > > On Behalf Of Nick Arnett > > Sent: Tuesday, August

Re: manage.py syncdb not working

2010-08-24 Thread !!CONDORIOUS!!
gt; > > From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] > On Behalf Of Nick Arnett > Sent: Tuesday, August 24, 2010 10:57 AM > To: django-users@googlegroups.com > Subject: Re: manage.py syncdb not working > > > > > > On Tue, Aug 24, 2010

RE: manage.py syncdb not working

2010-08-24 Thread Sells, Fred
esday, August 24, 2010 10:57 AM To: django-users@googlegroups.com Subject: Re: manage.py syncdb not working On Tue, Aug 24, 2010 at 7:43 AM, Sithembewena Lloyd Dube wrote: Thanks Reinout. I have been seeing a lot of discussions regarding South lately - time to dive in and find out what it i

Re: manage.py syncdb not working

2010-08-24 Thread Sithembewena Lloyd Dube
Thanks Nick - this echoes a thought that occured to me i.e. "create new table, copy data". The issue with constraints is what kept me from trying this out (remembered previous jobs updating SQL Server schemas - not fun with live data). Regards, Lloyd On Tue, Aug 24, 2010 at 4:56 PM, Nick Arnett

Re: manage.py syncdb not working

2010-08-24 Thread Nick Arnett
On Tue, Aug 24, 2010 at 7:43 AM, Sithembewena Lloyd Dube wrote: > Thanks Reinout. I have been seeing a lot of discussions regarding South > lately - time to dive in and find out what it is and what it means for me. > > I was under the impression that Django would add a field to my table. So, > is

Re: manage.py syncdb not working

2010-08-24 Thread Sithembewena Lloyd Dube
Thanks Reinout. I have been seeing a lot of discussions regarding South lately - time to dive in and find out what it is and what it means for me. I was under the impression that Django would add a field to my table. So, is syncdb only good during initial database setup? Many thanks, Lloyd On

Re: manage.py syncdb not working

2010-08-24 Thread Reinout van Rees
On 08/24/2010 04:17 PM, Sithembewena Lloyd Dube wrote: Hi all, I have been working on some models and tried to run the manage.py syncdb command. It says there are no fixtures found even after I just added a field to a model. No fixtures found: it means to tell you that it didn't find any spec

Re: manage.py syncdb not working

2010-08-24 Thread Renne Rocha
Hello, It is correct. Syncdb will not alter existing tables: http://docs.djangoproject.com/en/1.2/ref/django-admin/#syncdb The reason is that if you've changed you model with some kind of constrains (unique fields, etc), Django will not try to guess how to mantain the correctness of your

manage.py syncdb not working

2010-08-24 Thread Sithembewena Lloyd Dube
Hi all, I have been working on some models and tried to run the manage.py syncdb command. It says there are no fixtures found even after I just added a field to a model. A solution has been to drop the table in MySQL before running syncdb. This doesn't seem feasible all the time. What could I be