Skip to content

Instantly share code, notes, and snippets.

@milinmestry
Last active April 18, 2017 18:47
Show Gist options
  • Save milinmestry/bf0f49c37224d8b842ddb0e1b964a740 to your computer and use it in GitHub Desktop.
Save milinmestry/bf0f49c37224d8b842ddb0e1b964a740 to your computer and use it in GitHub Desktop.
Using Mysql database for Django 1.10
Ensure that you have installed library as given below; this will solve error "OSError: mysql_config not found".
sudo apt-get install libmysqlclient-dev
Thanks: http://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found
In your python environment install mysqlclient as shown below-
pip install mysqlclient
Thanks: https://help.pythonanywhere.com/pages/UsingMySQL
Now configure django application settings.py file to use MySQL database-
Thanks: http://stackoverflow.com/questions/19189813/setting-django-up-to-use-mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment