'Django - django.db.utils.IntegrityError: duplicate key value violates unique constraint

I'm trying to build a server at django that will hold my mobile device update files:

class updates(models.Model):
     namedev = models.CharField(max_length=200)
     devip = models.CharField(max_length=200)
     nameupdate = models.CharField(max_length=200)
     datesend = models.DateTimeField(max_length=200)
     status = models.CharField(max_length=100)

And every time I use the "create ()" function it fails to create a column in the database,

def create(nameDev,ipDev,nameUpdate,dataSend,status):
     updates.objects.create(namedev=nameDev,devip=ipDev,
     nameupdate=nameUpdate,datesend=dataSend,status=status)
     print("------------------------------test1-------------------------")

and I get it:

[enter image description here][1]

[enter image description here][1]


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source