The error is coming because in some field in the model, the model the max_length is set as 50 and then we are trying to enter more than 50 characters into it.
It’s not necessary that you have explicitly set the field’s max_length as 50. In many cases it may be the default value or in some cases set by django.
In my case, here I had
slug = models.SlugField(unique=True)
and by default django sets the max_length in SlugField as 50 characters. Hence I was getting the error.
We simply need to set the max-length value greater than 50 to accomodate what we need.
slug = models.SlugField(max_length=500,unique=True)
It should work fine once you do makemigrations and migrate.
You need to login before you can make any post submission.