Right. The question is whether you added the field "after" running syncdb for the first time.
On Fri, Apr 13, 2012 at 8:58 PM, alex3627 <alexanderdie...@googlemail.com>wrote: > > > On Friday, April 13, 2012 12:45:22 PM UTC-5, Timothy Makobu wrote: >> >> Did you run a syncdb, then added mainloc after? Also, using >> south<http://south.aeracode.org/>makes things much easier. >> >> Of course I ran a syncdb. I have no experience with South and would like > to solve this problem without using something else. > > > Thanks > Alex > > > >> 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<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+unsubscribe@** >> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>. >> For more options, visit this group at http://groups.google.com/** >> group/django-users?hl=en<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 view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/mapjVj47xokJ. > > 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.