Hi, I am new to Django, and have come across an issue while following the tutorial from the documentation.
My app is slightly different from the tutorial, but its very similar. In my models file I’ve created a class “Person”. When I go into the Python shell, I create a Person p1 with the constructor as defined in models. But when I write
p1.save()
I get this error:
“django.db.utils.OperationalError: no such table:”
I’ve deleted the migration file and made a new migration, but I keep getting this error, for any object I try to create and save. When I makemigrate, it acknowledges changes made to the models file, but then when I migrate, I get the response:
No migrations to apply.
Any help is very appreciated, thanks in advance!