title: unable to get mysql working with django
body: <p>I am trying to learn Django. I have some programming experience but I am new to Django and python. I have installed Django and now trying to connect it with MySQL. I have also installed MAMP and created the database and also edited the settings.py. But I am getting following error when I am trying to run Django:</p>
  
  <blockquote>
    <p>django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb</p>
  </blockquote>
  
  <p>I have added following in settings.py:</p>
  
  <pre><code>DATABASES = {
  'default': {
      'ENGINE': 'django.db.backends.mysql',
      'NAME': 'mysitedb',
      'USER': 'root',
      'PASSWORD': 'root',
      'HOST': 'localhost',
      }
  }
  </code></pre>
  
  <p>Am I missing something? I have checked on google and I can see a thread to install python-mysql using following command in terminal:</p>
  
  <blockquote>
    <p>pip install MySQL-python </p>
  </blockquote>
  
  <p>But this command doesn't run for me and I get following error:</p>
  
  <pre><code>Command python setup.py egg_info failed with error code 1 in /private/var/folders/1n/1r7lvnh53k5g46zpl3jsvz7h0000gr/T/pip_build_pankaj/MySQL-python
  Storing complete log in /Users/pankaj/Library/Logs/pip.log
  </code></pre>
  
  <p>P.S: I am using Mac OS 10.9.</p>