Re: in the shell, "module object has no attribute Model"

2011-08-02 Thread webcomm
On Aug 2, 3:38 pm, Daniel Roseman wrote: > by declaring that metadata explicitly: > >    1. In [2]: class MyTest(models.Model): >    2.    ...:     title=models.CharField(max_length=200) >    3.    ...:     class Meta: >       ...:         app_label = 'my_test' > Actually, that seems to have fixe

Re: in the shell, "module object has no attribute Model"

2011-08-02 Thread Daniel Roseman
On Tuesday, 2 August 2011 20:14:09 UTC+1, webcomm wrote: > > I'm also getting "list index out of range" quite often. Here is a > shell session showing the error in context: http://pastebin.com/FBE30SDK I don't know about the 'has no attribute Model', since you don't show the traceback for tha

Re: in the shell, "module object has no attribute Model"

2011-08-02 Thread webcomm
I'm also getting "list index out of range" quite often. Here is a shell session showing the error in context: http://pastebin.com/FBE30SDK -- 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@google

in the shell, "module object has no attribute Model"

2011-08-02 Thread webcomm
I am trying to get more comfortable with interactive programming in the shell... which I have always found a bit awkward and have mostly avoided in favor of working in files (even for small experiments.) I'm trying to do something pretty simple: from django.db import models class News(models.Mode