Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How come django with 1 thread can serve concurrent access?

I have some doubt in my mind, currently I confused to determine concurrent access of the server. Let say I am not using uwsgi/gunicorn for my django application, it means I am running application with 1 thread and 1 worker right ? , so it means that we just can open 1 connection in a time, which means that it is impossible to create concurrent access right ? , so how come that default django can serve concurrent access ?

like image 634
Edward Sujono Avatar asked Jan 16 '17 11:01

Edward Sujono


1 Answers

You only say how you're not running the application, not how you are.

But if you use the development server (python manage.py runserver), it is multithreaded.

If you want to run it without threading, use the --nothreading option.

like image 101
RemcoGerlich Avatar answered Oct 01 '22 04:10

RemcoGerlich