Re: Model fails in shell but not in runserver - IndexError: list index out of range

2009-01-26 Thread phoebebright
Karen, Yes have models in same directory as settings - bad girl! Thanks. Phoebe. On Jan 26, 1:37 pm, Karen Tracey wrote: > On Mon, Jan 26, 2009 at 8:03 AM, phoebebright > wrote: > > > > > > > Am I blind? > > > I am getting this error in the shell, but no obvious errors when using > > the bro

Re: Model fails in shell but not in runserver - IndexError: list index out of range

2009-01-26 Thread Karen Tracey
On Mon, Jan 26, 2009 at 8:03 AM, phoebebright wrote: > > Am I blind? > > I am getting this error in the shell, but no obvious errors when using > the browser interface. > > >>> from models import Business > Traceback (most recent call last): > File "", line 1, in ? > File "/home/django/towns/mod

Model fails in shell but not in runserver - IndexError: list index out of range

2009-01-26 Thread phoebebright
Am I blind? I am getting this error in the shell, but no obvious errors when using the browser interface. >>> from models import Business Traceback (most recent call last): File "", line 1, in ? File "/home/django/towns/models.py", line 8, in ? class Category(models.Model): File "/usr/