Did you run a syncdb, then added mainloc after? Also, using south<http://south.aeracode.org/>makes things much easier.
On Fri, Apr 13, 2012 at 8:19 PM, alex3627 <alexanderdie...@googlemail.com>wrote: > Hi all, > > I am new to django and just learning, but for the current error I have > absolutely no idea about the cause. I have created a model named Job in > model.py which contains several elements. One of the is defined as follows: > > mainloc = models.CharField(max_length=1, choices = MAINLOC) > > and MAINLOC is a list of 2-tuples, with the first element a 1-character > expression (like 'B', 'M'...). I have updated the database (the name > mainloc is explicitly mentioned in the screen output), I have sync'd the > database and restarted the server. But still, when I want to display the > (empty) list on my browser, I get the message > > no such column: jobs_job.mainloc > > > Any idea or advice I could try to do? > > Thanks > Alex > > -- > 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/-/4G24v1A5LaUJ. > 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. > -- You received this message because you are subscribed to the Google Groups "Django users" group. 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.