Skip to content Skip to sidebar Skip to footer

Dataerror Value Too Long For Type Character Varying(100)

I need to make changes to my profiles object at the admin site in Django, but when I click save, I get the error DataError at /admin/profiles/profiles/31/change/ value too long for

Solution 1:

Found the answer, For some reason running:

heroku run python manage.py migrate

was not applying the migrations locally. Read somewhere that you need to be specific with the python version you were running with. Thus I realized running:

heroku run python3 manage.py migrate 

did not only generate and apply the migrations locally but also allowed the image file field to be created thus resolving the error above.

Post a Comment for "Dataerror Value Too Long For Type Character Varying(100)"