Tuesday, August 2, 2011

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

On Aug 2, 3:38 pm, Daniel Roseman <dan...@roseman.org.uk> 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 fixed both errors : )

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate