![]() The error message is quite clear: your 200 characters are too big to fit in a varchar(4).įirst, update your model fields max_length attribute from 4 to a number that you expect will be long enough to contain the data you're feeding it. I would really appreciate a conceptual overview of what's going on and how I can fix it. My specific system is Webfaction, CentOs shared machine, Django running on PostgreSQL. Does that involve modifying the PostgreSQL database? My database is already encoded for UTF-8, according to my webhost.ĮDIT : I see that one answer recommends making the column wider. Value too long for type character varying(N)ĭjango fixture fails, stating "DatabaseError: value too long for type character varying(50)" ![]() How can I enable Django to allow for longer values? The specific error is: database error: value too long for type character varying(4) I'm trying to save a stripe (the billing service) company id to my database in Django.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |