3👍
✅
Sqlite does not enforce the length of a varchar(n). From the sqlite FAQ:
3👍
Check the Postgres log file, it will log the full failed SQL statement including table name and offending string value.
- [Django]-Can't build index for solr/haystack: unknown field 'django_id'
- [Django]-Django allauth – no verification email for social users
- [Django]-What's the best way to handle different forms from a single page in Django?
1👍
To solve the actual problem, change your declaration to text. That will allow you to import your data and get it cleaned up. Then you can reapply a constraint.
- [Django]-Django & Nginx deeplinking domains (re-write rules or django urls?)
- [Django]-Have different base image for an application in docker
- [Django]-Django: return several views from a single URL without redirection
0👍
Check the length of data from SQLLite inside fixtures/core.json that you are trying to insert to Postgres. It looks like the data exceed 30 length characters. Check your django model for property that is limited to 30 characters, then check your fixtures for data that exceeds that maximum length.
Source:stackexchange.com