Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion no such column: jobs_job.mainloc
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Timothy Makobu  
View profile  
 More options Apr 13 2012, 1:45 pm
From: Timothy Makobu <makobu.mwambir...@gmail.com>
Date: Fri, 13 Apr 2012 20:45:22 +0300
Local: Fri, Apr 13 2012 1:45 pm
Subject: Re: no such column: jobs_job.mainloc

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+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.