I have installed mysql in my virtual environment using this command and it has installed successfully..
sudo apt-get install libmysqlclient-dev
sudo pip install MySQL-python
Now in my settings.py I have done this..
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': os.path.join(BASE_DIR, 'db_hotelnepal'),
}
}
But when I run server it throws error saying ""Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb""...
Whats the prob and how can I fix ?