mod-wsgi

Django http connection timeout

我只是一个虾纸丫 提交于 2020-12-03 04:14:27
问题 I have Django + mod_wsgi + Apache server. I need to change default HTTP connection timeout. There is Timeout directive in apache config but it's not working. How can I set this up? 回答1: I solved this problem with : python manage.py runserver --http_timeout 120 回答2: There is few timeout options in mod_wsgi WSGIDaemonProcess directive (i think inactivity-timeout can help): inactivity-timeout=sss (2.0+) Defines the maximum number of seconds allowed to pass before the daemon process is shutdown

Weird subprocess issue with Django

北慕城南 提交于 2020-11-27 04:32:34
问题 I'm sorry if this is a duplicate question, but after searching through 3 pages for "django subprocess", I, for one, could not find the answer to my particular problem. I'm trying to run pdflatex on tex file, but for some reason in Django it doesn't produce anything. It works just fine in a regular python script, though. I've omitted most of the code here, but this is basically the important bit. I'm running this on apache2 with mod_wsgi, and I suspect that it might be an apache permissions

Weird subprocess issue with Django

≡放荡痞女 提交于 2020-11-27 04:31:21
问题 I'm sorry if this is a duplicate question, but after searching through 3 pages for "django subprocess", I, for one, could not find the answer to my particular problem. I'm trying to run pdflatex on tex file, but for some reason in Django it doesn't produce anything. It works just fine in a regular python script, though. I've omitted most of the code here, but this is basically the important bit. I'm running this on apache2 with mod_wsgi, and I suspect that it might be an apache permissions

Weird subprocess issue with Django

微笑、不失礼 提交于 2020-11-27 04:29:25
问题 I'm sorry if this is a duplicate question, but after searching through 3 pages for "django subprocess", I, for one, could not find the answer to my particular problem. I'm trying to run pdflatex on tex file, but for some reason in Django it doesn't produce anything. It works just fine in a regular python script, though. I've omitted most of the code here, but this is basically the important bit. I'm running this on apache2 with mod_wsgi, and I suspect that it might be an apache permissions