Hi,

If you drop the database (or just 'devLab_subfoo') and re-create it 
>
dropping the DB did the trick

Just found out that 'python manage.py flush --noinput '  followed by 
'manage.py syncdb'   is not enough.


 

> (re-run syncdb) does the error persist? 
>
> Looking at the generated SQL, it looks like the table should have that 
> field. Did you create the database earlier, and then alter the models? 
> Django will not automatically change the DB structure when running 
> "syncdb", it will only create tables that are missing. 
>
>
Running "python manage.py reset "  did the trick. 

I should have dig further into definition of  'flush' , 'syncdb' and 
'reset'  commands ...

thank for the help and sorry for disturbance.

manu

 

> Cheers 
>
> Tom 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/qPFZ3t5WVU0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to