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

后端 未结 11 607
北恋
北恋 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:27

    I also had this problem when using a filefield and was scratching my head for a while. Of course the default FileField instances are created with a 100 character limit.

    https://docs.djangoproject.com/en/dev/ref/models/fields/#filefield

提交回复
热议问题