You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to work with django-planet with MySQL I've encountered two problems:
The Blog model requires the "url" will be both unique and with max_length of 1024. In MySQL this is not possible. URLFields (or actually any char field) can be unique only if it's 256 characters or less.
The second problem is that mysql limits prefix support to 767, and planet requires more. I don't understand this completely but this is documented here: http://dev.mysql.com/doc/refman/5.1/en/create-index.html
search for 767
The text was updated successfully, but these errors were encountered:
It's the Post model that has a URLField with max_length=200, changing it wouldn't be enough as the migrations would still be trying to create a broken field in 0001_initial.py
While trying to work with django-planet with MySQL I've encountered two problems:
The Blog model requires the "url" will be both unique and with max_length of 1024. In MySQL this is not possible. URLFields (or actually any char field) can be unique only if it's 256 characters or less.
The second problem is that mysql limits prefix support to 767, and planet requires more. I don't understand this completely but this is documented here: http://dev.mysql.com/doc/refman/5.1/en/create-index.html
search for 767
The text was updated successfully, but these errors were encountered: