CharField cannot have a "max_length" greater than 255 when using "unique=True"

2009-12-07 Thread germ
my platform: django 1.1.1, mysql 5.0.67, python 2.6.2 why does syncdb complain CharField cannot have a "max_length" greater than 255 when using "unique=True" when mysql 5.0.67 does allow greater tan 255? is there a way to override or ignore this error? this works in mysql mysql> create table mb

Re: CharField cannot have a "max_length" greater than 255 when using "unique=True"

2009-12-08 Thread germ
> The point is that utf8 can use up to 3 bytes per character... i appreciate your reply. interesting distinction between bytes and chars. i think i still need some more guidance. still not sure how to resolve with your suggestion to consdier the character set. i am able to create the django model

Re: CharField cannot have a "max_length" greater than 255 when using "unique=True"

2009-12-10 Thread germ
for my needs i will patch django/db/backends/mysql/validation.py producing my own locally used django rpm to allow more than 255. in my configuration this works fine. thanks all for your time and guidance! -- You received this message because you are subscribed to the Google Groups "Django users