I have trouble with django model migrations.
I have some models in my app, and I already have some data inside.
When I added some models in my application, and I run mak
every time you make changes to your models, try these steps :
python manage.py makemigrations [your app name]
then:
python manage.py migrate
it should work fine. but remember if you have already data(rows) in your tables you should specify the default value for each one the queries.
if not, Django prompt you to specify the default value for them
or you can just try to use blank=True
or null=True
in your fields like below :
website = models.URLField(blank=True)