4sh1sh
4sh1sh

Reputation: 751

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

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!!enter image description here

blog.py file link

database.py file link

What needs to be done to get past this error??

Upvotes: 6

Views: 2277

Answers (2)

satgi
satgi

Reputation: 6353

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

Upvotes: 6

Cole Maclean
Cole Maclean

Reputation: 5687

Install MySQLdb (required by tornado.database).

Upvotes: 1

Related Questions