0
When trying to create a new field in a model while creating an api, I get the following error when running the command runserver
:
That would be the class:
class Person(models.Model):
teste = models.CharField(max_length=200, default='')
name = models.CharField(max_length=200, default='')
last_name = models.CharField(max_length=200, default='')
age = models.IntegerField(max_length=100, default='')
history = HistoricalRecords()
I tried to rotate the python manage.py runserver
, initially, also tried to rotate the makemigrations
. I believe this error is related to SQL Server, but it was not clear why it occurred. Even filling the field fields
in the serializer
, the error occurs.
After running python Manage.py makemigrations, you ran python.py migrate'?
– Victor Pajeú
Yes, I have directed migrate, but the error persists.
– user180583