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.Model):
    title=models.CharField(max_length=200)

It's when I hit return a second time, to get out of the indent, that I
get this error: "module object has no attribute Model".   I'm working
in iPython.

Is there an obvious noob mistake I'm making here?  I don't run into
this error when I work in a file.

Thanks for your help,
Ryan


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

Reply via email to