Hello,

Where does this happen? Do you do urlopen somewhere? (IIRC, changing Django
settings doesn't affect internal Python objects).

urllib.request has a timeout, it's the second parameter after the data:
https://docs.python.org/3/library/urllib.request.html?highlight=urllib#urllib.request.urlopen

But you shouldn't do anything long while answering a request. You should
probalby use something like Celery to retrieve information in the
background, freeing the request (and later show the proper response).

On Mon, Jan 8, 2018 at 2:30 PM, <[email protected]> wrote:

>
> I use pythonanywhere. At this time, "urlopen error [Errno 110] Connection
> timed out" occurs. So I set CACHES TIMEOUT to None in Django settings.py.
> However, error 110 still occurs. Do I need to change the timeout value in
> urllib / request.py? I would really appreciate your help in this matter.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/2a798988-c7ab-4ec8-b967-e4f00af5b27b%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/2a798988-c7ab-4ec8-b967-e4f00af5b27b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Julio Biason*, Sofware Engineer
*AZION*  |  Deliver. Accelerate. Protect.
Office: +55 51 3083 8101 <callto:+555130838101>  |  Mobile: +55 51
<callto:+5551996209291>*99907 0554*

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEM7gE2w3%2BCHPhhXdpohd1Y8t5ejjvE4Q_s%3DRt4XsOhAAuRSDQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to