Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

modwsgi and mysql. queries only show actual result after touched wsgi file

I have a problem with modwsgi and mysql. I have a really simple wsgi application: import MySQLdb conn_mysql = MySQLdb.connect('localhost', 'root', 'asd', 'testwsgi') def application(environ, ...
David's user avatar
  • 1
-1 votes
1 answer
859 views

How to place WSGI script mysql query into a ' function '

Because i am new and also because there isn't much to work with on google search for WSGI.. ı need to figure out how to place the mysql query below into a function in WSGI script. here is the current ...
Void State -- S�mer Kol�ak's user avatar
0 votes
2 answers
4k views

Python : How to break the python mysql query line

Currently what i have is.. cursor.execute ("insert into incoming set raw='" + f2 + "', from_em='"+ a2 +"', to2='" + a1 + "'") i am trying to make this easy to read for myself. so i tried to break ...
user2624103's user avatar
0 votes
1 answer
128 views

Python 2.6 : How to pass variable to mysql query if it must be placed above application(environ?

The only way to get a variable from the URL is via under the def application(environ, start_response): but the mysql code must be placed on top of this line. what are the known options ? extra ...
user avatar
0 votes
1 answer
357 views

Python [ mod_wsgi ] how to gather up all of the mysql results into an array?

via cli: [root@localhost 0]# python test13.wsgi (1, 'aaaaaa') (2, 'sdsdfsdfsd') (3, 'dsfsdfasdfsdf') (4, 'sdgsdgsdfsa') [root@localhost 0]# via apache : (4, 'sdgsdgsdfsa') script code: import ...
user avatar
-1 votes
1 answer
526 views

Python [ mod_wsgi ] works via cli but not via apache

cli: [root@localhost 0]# python test13.wsgi (1, 'aaaaaa') [root@localhost 0]# apache: Internal Server Error full script code: import MySQLdb conn = MySQLdb.connect (host = "localhost", ...
user avatar
2 votes
1 answer
2k views

mysql server gone away (error #2006)

Running Django 1.3 over wsgi on apache 2.2.9/Debian, and using mysql 5.0.51a I encountered the following problem, both in the deployed django installation and in both development servers we had ...
koekiezorro's user avatar
1 vote
0 answers
823 views

WSGI: _mysql.so Image not found

Environment: MacBook Pro, OSX 10.6, Python 2.6.1 64 bit, MySQL 5.X 64 bit I am having problems installing MySQLdb for use with Django. After installing everything I am able to open the python ...
Justus Burger's user avatar