I'm using Django with MySQL (mysql-python 1.2.5) and I can run python manage.py runserver 0.0.0.0:8000
fine. I would like to deploy my Django app with Gunicorn by running gunicorn -b 0.0.0.0:8000 wsgi:application
. However, Django's throwing error with MySQLdb:
File "/Library/Python/2.7/site-packages/django/db/backends/mysql/base.py", line 28, in <module>
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
Any idea why it has this error? Thanks.