[Answered ]-Django Heroku DataError when populating database from script

0👍

Like shlomta1 said your string is larger than max length. Try running heroku run python manage.py migrate so you apply those max lengths to your heroku database too

2👍

You getting this error because one of your strings is larger than the max length.
If its working locally you probably changed the max length and didn’t migrate your changes on Heroku.

Leave a comment