Encountered Bad Gateway error when working with Django and Gunicorn.
It turns out it we just need to pass the following in DEFAULT_ARGS: DEFAULT_ARGS="--timeout 900
Encountered Bad Gateway error when working with Django and Gunicorn.
It turns out it we just need to pass the following in DEFAULT_ARGS: DEFAULT_ARGS="--timeout 900
If you need to perform a DateDiff between 2 dates in your LINQ query:
var results = from r in db.Results
where r.Extra2 == id && r.CampaignID == 64
select new
{
Phone = r.Phone,
Pickup = r.PickUp,
Duration = EntityFunctions.DiffSeconds(r.PickUp,r.HangUp),
AnswerType = r.AnswerType
};
Notice the line - EntityFunctions.DiffSeconds(r.PickUp,r.HangUp)