I am learning django and I am working on models. I created a Product class
from django.db import models
class Product(models.Model):
title = models.CharField(max_length=10)
description = models.TextField(blank=False)
price = models.DecimalField(max_digits=10, decimal_places=2)
featured = models.BooleanField(default=False)
int = models.IntegerField(default=10)
and I am trying to delete the 'int' field but the django site does not update after the chanage.
After deleting a model field(the 'int' field, see the screenshots), and running
python manage.py makemigrations
python manage.py migrate
the live preview does not update and throws an error regarding the erased field. after closing the server and restarting the server(ctrl + c and than
python manage.py runserver
the page updates and does not throw any errors
I am using sqlite. I tried deleting 'pycache' and all the migrations also db.sql3, recreating the superuser but after removing any field I still get the same error.
picture 1 -> initial state $
https://ibb.co/Yb6pmgr
picture 2 -> after removing 'int' field https://ibb.co/xf1bJQJ
picture 3 -> error : $
https://ibb.co/0cPyRZv