Dec-12-2016, 07:12 PM
Hello ! i'm starting framework Django for python and I was left with a question about database :
I created a class named Category in models.py
Class Category (models.Model)
Name = models.Charfield (max_lenght = 255)
And in the views.py file I created an object (Category.objects.create (name = "python")) but even updating the page deleting the line of the code and updated again the object is duplicated and I do not understand the reason, Solution to this problem?
I've tried it several times and it's always the same, I have no idea what I'm doing wrong.
I created a class named Category in models.py
Class Category (models.Model)
Name = models.Charfield (max_lenght = 255)
And in the views.py file I created an object (Category.objects.create (name = "python")) but even updating the page deleting the line of the code and updated again the object is duplicated and I do not understand the reason, Solution to this problem?
I've tried it several times and it's always the same, I have no idea what I'm doing wrong.


