Last active
April 18, 2017 18:47
-
-
Save milinmestry/bf0f49c37224d8b842ddb0e1b964a740 to your computer and use it in GitHub Desktop.
Using Mysql database for Django 1.10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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