+ 1

Can django handle multiple users in parallel?

I am building a billing software for a retail shop and using django. I am not using the django sqlite database. I am using external MySQL database (I connected it with MySQL connector module) The code is working fine in the system. My system is connected in LAN . The question is, if I try to run the program in my system and other system which is connected in LAN, will django able to create separate threads for both the systems? Or I need to write code to handle multiple users at a time?

1st Apr 2023, 3:10 AM
Pardha Saradhi
2 Respuestas
+ 5
Your question is a bit confusing. To make it clearer, a "thread" is a concept of the operating system which allows multitasking and parallel processing. The right word you are looking for, is "session", which allows in the world of web development to store state about a particular data flow of stateless HTTP transactions. Hence it is able to track what belongs to a single visitor, regardless if they are authenticated as a user or not. Django can of course handle sessions and multiple users at the same time. There would be not much point to a single-user web framework. https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Sessions Another person on the same local network will be able to connect to the Django server on your machine, but not through localhost, rather through the network address of your computer. And the port must be open and not blocked by firewall.
1st Apr 2023, 4:19 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Tibor Santa Thanks.. that's the answer what I am looking for
1st Apr 2023, 6:09 PM
Pardha Saradhi