An old post, but I just had the same problem. On Monday, 20 September 2010 22:51:30 UTC+8, Valentin Golev wrote: > > Hello, > > I'm trying to deploy my Django application with PostgreSQL. While > trying to insert an object to the database, I'm getting the following > error: > > > django.db.utils.DatabaseError: value too long for type character > varying(50) > > > My application were working fine on SQLite. I guess it has something > to do with encoding (my data in in Cyrillic). I thought Django should > truncate in on the application level, but it obviously doesn't. What > can I do (except for truncating data by myself every time)?
-- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/_YEERIgzG8sJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.