title: Creating an object in django
body: <p>I have just started learning Django and I am making a database using SQLite
  I have a python file called models.py and I am currently creating a py file for the objects called object. However I am having trouble creating objects in the database I have made. I think there is an issue with the object.py file because it is claiming that my FruitInfo sections have no objects.</p>
  <pre><code>models.py
  from django.db import models
  from django.core.validators import MinLengthValidator, MaxValueValidator, MinValueValidator
  
  class FruitInfo(models.Model):
      id = models.IntegerField(primary_key=True, max_length=30, validators=[MinLengthValidator(&quot;5&quot;)])
      name= models.CharField(max_length=30)
      origin = models.CharField(max_length=60)
      price = models.DecimalField(max_digits=4,null=False,decimal_places=2, validators=[MinValueValidator('200')])
   
      def __str__(self):
              return self.origin + &quot; &quot; + self.name
  
  object.py
  from stinky.models import FruitInfo
  FruitInfo.objects.all()
  FruitInfor.objects.all().values()
  
  record = FruitInfo.objects.create(id = &quot;A0001&quot;, name = &quot;Pink Lady Apple&quot;, origin= &quot;Washington State&quot;, price=&quot;$2.00/kg&quot; )
  record = FruitInfo.objects.create(id = &quot;A0002&quot;, name = &quot;Organic Bananana&quot;, origin = &quot;Australia&quot;, price = &quot;$4.50/kg&quot;)
  record = FruitInfo.objects.create(id = &quot;A0003&quot;, name = &quot;Orange&quot;, origin = &quot;Indonesia&quot;, price = &quot;$4/kg&quot;)
  
  record.save()
  </code></pre>