Using Django v1.10 and Postgres
there's a datafield which may contain a mixture of symbols (such as \|?), numbers, alphabetical letters, as well as Asian language characters.
The user says the maximum of this field should be 15 characters.
How do I enforce this using Django and Postgres as the database? In postgres, we use utf-8 encoding.
1 character may be a digit or a Chinese character or an English alphabetic letter
I know in PHP, there's a function called mb_strlen. And in python, the equivalent would be to use unicode strings.
Within the Django way, what's the best way to enforce max string length?