Django with an empty response after database access - Apache2/mod_python and MySQL on Debian Sarge

2006-09-19 Thread phxx
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

Re: multiple database, messy solution?

2006-09-19 Thread phxx
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

Re: Django with an empty response after database access - Apache2/mod_python and MySQL on Debian Sarge

2006-09-19 Thread phxx
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 --~--~

Re: php and django

2006-10-02 Thread phxx
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