Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL compatibility #8

Open
livni opened this issue Aug 19, 2010 · 3 comments
Open

MySQL compatibility #8

livni opened this issue Aug 19, 2010 · 3 comments

Comments

@livni
Copy link

livni commented Aug 19, 2010

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

@matagus
Copy link
Owner

matagus commented Sep 12, 2010

Blog model url attribute hasn't any given max_length. So, by default, it will use max_length=200. See http://docs.djangoproject.com/en/1.2/ref/models/fields/#urlfield

Are you sure you're using my django-planet? It seems you are suing someone else's fork.

@kouroshshafi
Copy link

I have the same exact issue; I don't know what to do? I have copied your model into my planet app and still no good news.... please have a look

@doctormo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants