Re: django db models error

2007-07-24 Thread akk
Thanks a lot. I guess, I was not reading it well. On Jul 24, 4:55 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 7/24/07, akk <[EMAIL PROTECTED]> wrote: > > > Traceback (most recent call last): > > File "", line 1, in > > File "/usr/lib/python2.5/site-packages/django/db/models/base.py",

Re: django db models error

2007-07-24 Thread James Bennett
On 7/24/07, akk <[EMAIL PROTECTED]> wrote: > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python2.5/site-packages/django/db/models/base.py", > line 40, in __new__ > model_module = sys.modules[new_class.__module__] > KeyError: '__console__' You'll need to actu

django db models error

2007-07-24 Thread akk
Hi, I started walking myself through exercises in django book. At chapter V - Interacting with a database: Models. I keep getting error when I try to create class. Otherwise my db connectivity seems fine. I can run from >>> django.db import connection >>> cursor = connection.cursor() (fine) Here