importing MySQL in django
Question: I downloaded The SQL API from here <http://www.djangoproject.com/r/python-
mysql/> (the official site) the problem is I don't know how to import it in
django. for example whrn I type this:

    
    
    from django.shortcuts import render_to_response
    import MySQLdb
    ....
    ...
    ..
    

I get the following error:

    
    
    Traceback (most recent call last):
      File "<console>", line 1, in <module>
    ImportError: No module named MySQLdb
    

where should I extract the files, and what do I have to change to make it work
?


Answer: When you extract it , cd into where you extracted it and run the setup.py file
` python setup.py install `

