Thursday, May 29, 2014

Re: The installation instructions for Windows is based on Python 3.4 But The MySQL connectors for Python are only for 2.7, 3.2 and 3.3

Am 21.05.2014 01:05, schrieb Varuna Seneviratna:
> The installation instructions for Windows is based on Python 3.4 But The
> MySQL connectors for Python are only for 2.7, 3.2 and 3.3
> What is the solution the problem?
>
>
> Varuna
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto:django-users@googlegroups.com>.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKW-c0ycBk2ufDNvSipx9Qd%2BbzmT3iPHiH5wCYnEh%2Bae6mgTnw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKW-c0ycBk2ufDNvSipx9Qd%2BbzmT3iPHiH5wCYnEh%2Bae6mgTnw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
Hello!

Use pyMySQL. You have to add

import pymysql
pymysql.install_as_MySQLdb()

in the main init of your application and it will work. I use it myself.

Bye
Christian

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5386FAE6.4050205%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment