My Models.py looks like this :
from django.db import models
# Create your models here.
class Product(models.Model):
item_name = models.CharField(max_length=100)
item_price = models.IntegerField()
item_image = models.ImageField()
class Meta:
ordering = ['item_name']
I am getting this error : AttributeError: type object 'Product' has no
attribute '_meta'
on giving any commands to the terminal.
pls help
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/a8a5b767-e406-43b0-b8e2-9d48c6f9e1fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.