CharField.max_length
The maximum length (in characters) of the field. The max_length is enforced at the database level and in Django’s validation.
Note
If you are writing an application that must be portable to multiple database backends, you should be aware that there are restrictions on max_length
for some backends. Refer to the database backend notes for details.
MySQL users
If you are using this field with MySQLdb 1.2.2 and the utf8_bin
collation (which is not the default), there are some issues to be aware of. Refer to the MySQL database notes for details.
Please login to continue.