apache - Django: WSGI delays -


i've deployed django-application, works fine. problem have there requests hanging, , can't find reason this. "hanging" means, e.g. if click on link in admin backend, browser loads (and apache access log not show get-request @ time), gets no answer. if request again, gets answered.

i tried out many different wsgi-configurations, including daemon/embedded mode changes, changes in amount of processes , threads etc. don't have idea search further. here current apache configuation:

<virtualhost myserver.com:80>     servername myserver.com      alias /media/ /opt/myserver/static_media/admin/     alias /favicon.ico /opt/myserver/static_media/img/favicon.ico      wsgiscriptalias / /opt/myserver/myproject.wsgi     wsgidaemonprocess myserver.com user=www-data group=www-data processes=2 threads=15     errorlog /var/log/apache2/myserver-error.log     customlog /var/log/apache2/myserver.log common  </virtualhost> 

and wsgi-file:

import os, sys sys.path.append('/usr/local/django') sys.path.append('/opt/myproject')  os.environ['django_settings_module'] = 'settings'  import django.core.handlers.wsgi  application = django.core.handlers.wsgi.wsgihandler() 

any ideas?

please check apache error logs. there might python error/stacktrace in there.

i think miss assignment of daemon hosted folder:

<directory /opt/myserver/>     wsgiprocessgroup server.com     order deny,allow     allow </directory> 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -