DatabaseError: value too long for type character varying(100)

后端 未结 11 451
北恋
北恋 2021-01-31 02:37

I have a Django web site running a mini CMS we\'ve built internally years ago, it\'s using postgresql. When saving a simple title and a paragraph of text I get the following err

11条回答
  •  醉梦人生
    2021-01-31 03:18

    I realize the question is already answered but for others that come here when looking for the error message:

    In my case the problem was that my table name exceeded 50 characters. Apparently this is not allowed. Changing the table name solved the problem.

    Read more here: https://code.djangoproject.com/ticket/18959

提交回复
热议问题