http://stackoverflow.com/questions/26560973/python3-mysql-error-loading-mysqldb-module-no-module-named-mysqldb

Can this help you?

2015-09-16 20:04 GMT+08:00 Sandeep kaur <mkaurkha...@gmail.com>:

> Greetings,
> I am using Python3.4 for the Django app on CentOs. The application is
> working perfectly fine with runserver, but when it is configured with
> apache and wsgi.py, I get this Internal Server error and error long says :
>
> [Wed Sep 16 11:38:30 2015] [error] [client 101.56.225.177]   File
> "/usr/local/lib/python3.4/site-packages/django/db/backends/mysql/base.py",
> line 27, in <module>
> [Wed Sep 16 11:38:30 2015] [error] [client 101.56.225.177]     raise
> ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
> [Wed Sep 16 11:38:30 2015] [error] [client 101.56.225.177]
> ImproperlyConfigured: Error loading MySQLdb module: No module named _mysql
>
>
> MySQLdb module is working perfectly fine. I tried to install MySQL-python
> and then found MySQLdb doesn't have Python 3 support. Then tried to used
> Python -mysql connector but that too gives error.
>
> I don't know why the MySQL is not working with apache.
> Your help will be highly appreciated.
>
> --
> Sandeep Kaur
> Blog: sandymadaan.wordpress.com
> SCM: https://github.com/sandeepmadaan
>
>
>
> --
> 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+unsubscr...@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/CAF66xG3jHPXhABeuq8Uw3UMV9vdPTg9PET5LdYSZZHY5sg8x1A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAF66xG3jHPXhABeuq8Uw3UMV9vdPTg9PET5LdYSZZHY5sg8x1A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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/CAH_Bdvo7_%2Bpd0muwJXZp0aqUouZPp%3D8RGucezVrvwiqNxnCiYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to