Matteo Crippa
unread,Oct 24, 2009, 6:59:26 AM10/24/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Tornado Web Server
Hi,
i'm experiencing a strange behaviour meanwhile I try to deploy my
tornado app on my production server.
Let's me try to explain the situation.
I developed a little app that use mysql to store data and when I test
it on my laptop with python 2.6.3 and python-MySQLdb 1.2.3b2 there
were no problems, but as soon as I deploy my app on my production
server that uses python 2.6.2 and python-MySQLdb 1.2.2 the app fails
to render the page raising this error:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/tornado/web.py", line
688, in _execute
getattr(self, self.request.method.lower())(*args, **kwargs)
File "/var/www/app.py", line 122, in get
self.store_db('cc',test)
File "/var/www/app.py", line 82, in store_db
self.db.execute(query)
File "/usr/local/lib/python2.6/dist-packages/tornado/database.py",
line 132, in execute
self._execute(cursor, query, parameters)
AttributeError: 'Connection' object has no attribute '_execute'
Any advice on how to fix this?
I'm using the latest revision of tornato made by Richard Taylor in
order to fix reconnect issuses.