1

I am running Django development server and I want to change the default http connection timeout. As per this stackoverflow link, django github repo issue link and reddit link, I should pass --http_timeout argument while running the development server.

But when I try to do that I am getting error enter image description here

I am using Django 3.0.3 version. Is there any way to override the default http connection timeout?

2 Answers 2

1

Django has no such option for manage.py runserver

https://docs.djangoproject.com/en/3.0/ref/django-admin/

Those links you provided refer to the Django v1.11 and Daphne as a HTTP server which had this option.

Sign up to request clarification or add additional context in comments.

3 Comments

Thanks. Is there any way I can override the http connection timeout?
WSGI server embedded in Django is pretty simple and is limited in configuration. What you will use in production will most-likely be Gunicorn + Nginx. So you could start using Gunicorn in development (it is installed as python package, which is pretty simple) and start your server start command would be: gunicorn your_app.wsgi --bind 0.0.0.0:8000 -t 180
I might only use development server as it has only limited role in the whole project.
0

Looks like that argument is added by Django Channels here. So you would need to install and use Django Channels I presume.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.