All Questions
Tagged with mysql-python mod-wsgi
12 questions
0
votes
0
answers
186
views
Django + Apache(httpd): Error loading MySQLdb module
I have tried to figure this out for a day now and cannot seem to make any headway.
I'm getting the following Apache error:
[wsgi:error] django.core.exceptions.ImproperlyConfigured: Error loading ...
1
vote
1
answer
259
views
Remote MySQL connection works from cmdline, but not with Apache (Webpy, Mod-WSGI)
Server OS: Red Hat Enterprise Linux Server release 5.11
Apache: 2.2.3
Python: 2.7.6
Mod_WSGI 4.5.3, Web.Py, MySQLdb
Hey! I have created a Web.Py site that queries data from a remote Oracle database ...
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, ...
-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 ...
0
votes
1
answer
2k
views
Django: 500 internal server error , is it due to only MySQL DB?
I installed Django on digital ocean using mod_wsgi, but it is having 500 Internal Server Error. When I look in apache error log, here is what I got:
[Mon Dec 16 20:45:53 2013] [error] [client 61.147....
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 ...
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 ...
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 ...
-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",
...
1
vote
1
answer
1k
views
Django + Apache with mod_wsgi. Unable to load MySQLdb
I currently set up a virtual host on Apache to try to host my Django project at django.localhost
My apache configurations are correct:
hobbes3@hobbes3:~/Sites/mysite$ apachectl configtest
Syntax OK
...
1
vote
2
answers
1k
views
Deploying mod_wsgi: Error loading MySQLdb module
I want to deploy my django app using apache + mod_wsgi again. I seem to be getting this error 500 message Initially, I was told that I need the latest version of MySQLdb. After I had installed, I got ...
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 ...