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 "<console>", line 1, in <module> > > 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 actually put the model definition into a file and import it. > > If you know your way around the Django ORM's metasystem you can create > model classes "on the fly" in the development version of Django > (**not** in the 0.96 release -- you'll need a recent Subversion > checkout), but there may not be a whole lot of use cases for that. > > -- > "Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---