Re: Unknown column error when I add a field

2006-09-25 Thread Tool69
Thanks to all, I'm sorry for the late, but I cannot see my post before. I solved the problem with your help, see you, 6TooL9 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this grou

Re: Unknown column error when I add a field

2006-09-25 Thread Andy Dustman
On 9/20/06, Tool69 <[EMAIL PROTECTED]> wrote: > > Hi, > I'm totally new to django, I've made a little blog application and my > original template is like this one: > > class News(models.Model): > title = models.CharField(maxlength=255, verbose_name="Titre du > billet") > text = models.TextF

Re: Unknown column error when I add a field

2006-09-25 Thread James Bennett
On 9/20/06, Tool69 <[EMAIL PROTECTED]> wrote: > But now, I received an error message saying : > (1054, "Unknown column 'news_news.supplementary_image' in 'field > list'") When you change your model, you also have to make changes to your database to correspond. Django does not currently offer any

Re: Unknown column error when I add a field

2006-09-25 Thread James Punteney
When you add a new field to a model you currently have to manually add the field to the database as well. With webfaction this is easiest to do by using the MysqlAdmin through their control panel. If you aren't sure what type of field it needs to be you can run the manage.py sql to get an output