Tornado Error In .py 58 database row - Global Name NameError 'CONVERSIONS' is not defined

I am trying to launch a Tornado demo blog. I changed the database settings in the blog.py file. but when I try to run the blog.py file, I get the following error: enter image description here

link to blog.py

link to database.py

What needs to be done to get through this error?

+6
source share
2 answers

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

+6
source

Install MySQLdb (tornado.database required).

+1
source

Source: https://habr.com/ru/post/916065/


All Articles