2

I have a webpage made in Django that feeds data from a form to a script that takes quite a long time to run (1-5 minutes) and then returns a detailview with the results of that scripts. I have problem with getting a request timeout. Is there a way to increase time length before a timeout so that the script can finish?

[I have a spinner to let users know that the page is loading].

Wessi
  • 1,702
  • 4
  • 36
  • 69

2 Answers2

2

We don't change the request timeout for individual users on PythonAnywhere. In the vast majority of cases, a request that takes 5 min (or even, really, 1 min) indicates that something is very wrong with the app.

Glenn
  • 7,262
  • 1
  • 17
  • 23
0

Yes, the timeout value can be adjusted in the web server configuration.

Does anyone else but you use this page? If so, you'll have to educate them to be patient and not click the Stop or Reload buttons on their browser.

John Gordon
  • 29,573
  • 7
  • 33
  • 58