Re: Slow first request django

2016-10-18 Thread 'Tom Evans' via Django users
On Fri, Oct 14, 2016 at 5:15 AM, Avraham Serour wrote: > I will take a wild guess here and say that this is a modwsgi problem, it > seems it will only load the django app after the first request. Indeed, see this SO post for how to tell it to load your app immediately on start up: http://stackov

Re: Slow first request django

2016-10-13 Thread Avraham Serour
I will take a wild guess here and say that this is a modwsgi problem, it seems it will only load the django app after the first request. Honestly I suggest you to use nginx with uwsgi, the killer feature is that it is not apache, I ran with so many bumps with apache that I turned to nginx and neve

Slow first request django

2016-10-13 Thread Ricardo Prado
Hi Guys Someone can explain me the right way do create a virtualhost with threads and proccess? my first request is very slow between 5 to 10 seconds. I'm using ubuntu 14.04 with apache 2.4 Thanks ServerName 127.0.0.2 ServerAlias ahora.local WSGIDaemonProcess framework processes=5 threads=1