Hello,

I wanted to run Django with Python 3 but mysql was a showstopper until 
today. Thanks to G+ I found a few links of interest:

http://stackoverflow.com/questions/13320343/can-i-use-mysql-on-djangodev-1-6-x-with-python3-x

https://groups.google.com/forum/?fromgroups=#!topic/django-developers/CtTpgMjN5J8

https://github.com/clelland/MySQL-for-Python-3 (m4p3)


So I git-cloned django and m4p3 but I got a problem.


'use_unicode' is an invalid keyword argument for this functionRequest 
> Method:GETRequest URL:http://localhost:8080/propietario/Django Version:
> 1.6.dev20130310222819Exception Type:TypeErrorException Value:
>
> 'use_unicode' is an invalid keyword argument for this function
>
> Exception 
> Location:/home/ubuntu/.virtualenvs/test3/git/MySQL-for-Python-3/MySQLdb/connections.py
>  
> in __init__, line 175Python Executable:
> /home/ubuntu/.virtualenvs/test3/bin/pythonPython Version:3.2.3
>
>
I thought, well, let's disable use_unicode in my settings.py. I added 
OPTIONS: { 'use_unicode': False } to DATABASES.default, but no way. Same 
error. So I patched 
django/db/backends/mysql/base.py:DatabaseWrapper:get_connection_params() 
and commented 'use_unicode':True. And now I can use Django, Mysql, and 
Python 3


The question is: Is there any option I'm overlooking and this mix can be 
used with patching Django or is Mysql+python3 just not supported (for now)?


Thanks!
Norberto

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to