Re: django.db.utils.DatabaseError when resyncing django app models

2012-08-23 Thread Melvyn Sopacua
On 23-8-2012 4:53, Mhlanga Bothin wrote: > > On 23/08/2012, at 10:59 AM, Melvyn Sopacua wrote: > >> On 23-8-2012 2:37, Mhlanga Bothin wrote: >> >>> Thanks a lot for your help. I am not adding any classes to the app on >>> the second sync, correct me if I am wrong but django only resyncs new >>>

Re: django.db.utils.DatabaseError when resyncing django app models

2012-08-22 Thread Mhlanga Bothin
On 23/08/2012, at 10:59 AM, Melvyn Sopacua wrote: > On 23-8-2012 2:37, Mhlanga Bothin wrote: > >> Thanks a lot for your help. I am not adding any classes to the app on >> the second sync, correct me if I am wrong but django only resyncs new >> classes? > > Yes and no. The permissions are a

Re: django.db.utils.DatabaseError when resyncing django app models

2012-08-22 Thread Melvyn Sopacua
On 23-8-2012 2:37, Mhlanga Bothin wrote: > Thanks a lot for your help. I am not adding any classes to the app on > the second sync, correct me if I am wrong but django only resyncs new > classes? Yes and no. The permissions are a special case, they are also updated if you add permissions to a

Re: django.db.utils.DatabaseError when resyncing django app models

2012-08-22 Thread Mhlanga Bothin
On 22/08/2012, at 1:51 PM, Karen Tracey wrote: > The key part of the traceback is this: > > File > "/usr/local/lib/python2.7/site-packages/django/core/management/sql.py", line > 189, in emit_post_sync_signal > interactive=interactive, db=db) > File >

Re: django.db.utils.DatabaseError when resyncing django app models

2012-08-21 Thread Karen Tracey
The key part of the traceback is this: File "/usr/local/lib/python2.7/site-packages/django/core/management/sql.py", line 189, in emit_post_sync_signal interactive=interactive, db=db) File "/usr/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 172, in send

Re: django.db.utils.DatabaseError when resyncing django app models

2012-08-21 Thread Mhlanga Bothin
Great Thanks I will hunt around for it :) On 22/08/2012, at 11:56 AM, Kurtis Mullins wrote: > It looks to me like you might have a CharField with a max_length that is > greater than what your Database supports. That's my guess anyways :) > > On Tue, Aug 21, 2012 at 9:21 PM, Mhlanga Bothin

Re: django.db.utils.DatabaseError when resyncing django app models

2012-08-21 Thread Kurtis Mullins
It looks to me like you might have a CharField with a max_length that is greater than what your Database supports. That's my guess anyways :) On Tue, Aug 21, 2012 at 9:21 PM, Mhlanga Bothin wrote: > Hi, > > I am very new to Django, I have created multiple models in my

django.db.utils.DatabaseError when resyncing django app models

2012-08-21 Thread Mhlanga Bothin
Hi, I am very new to Django, I have created multiple models in my app. I am using postgresql_psycopg2 as my data base. When I run ./manage validate it returns without errors, sqlall works fine and when I syncdb it works as expected, the issue occurs when I run syncdb a second time I get the