Hi all together.
Since a few weeks i have a problem with database access in my django
installation.
On views, which use some Database related actions (mysql as backend) i
get a "Zero Sized Reply" Message from my local proxy. That means that
there it is simply an empty Response. The confusing thi
I guess you query one database through django.db.connection.cursor()
method.
Though you could query the athor one by using the MySQLdb Module (
http://sourceforge.net/projects/mysql-python ).
It would be something like that:
>>> import MySQLdb as db
>>> c = db.connection(host='hostaddress', user
Ok,
I think I've solved the problem on my own.
Yesterday I coincidentally found this mod_python FAQ Entry:
http://www.modpython.org/FAQ/faqw.py?req=show&file=faq02.013.htp
Though I changed my configs to run Django with Fast-CGI and it works
:-)
Yeah, FCGI rocks!
Bye,
Gregor Müllegger
--~--~
It could be a problem if you are using the apache webserver with php
using mod_php and django using mod_python. This could raise some
mystical disappointments with MySQL. So I think its the best idea to
run django with FastCGI.
just my opinion,
phxx
4 matches
Mail list logo