Tornado Error In database.py line 58 - NameError global name 'CONVERSIONS' is not defined

python, tornado

Solution

I met the same problem. If you're using Ubuntu, try "`sudo apt-get install python-MySQLdb`"

Problem

I'm trying to run the Tornado Demo 'Blog'. I've changed the database options in the blog.py file. but when i try to run the blog.py file i get the following error!! blog.py file link database.py file link What needs to be done to get past this error??

Original source