Re: Threads and requests with Channels 2.0

2018-03-20 Thread Andrew Godwin
Hi Jonathan, Daphne runs a single asyncio event loop in the main thread which services all protocol handling (low-level HTTP and websocket) and Channels-level async-native code (ASGI middleware, routing, async consumers). Any synchronous calls (e.g. methods on synchronous consumers) are queued up

Threads and requests with Channels 2.0

2018-03-20 Thread Jonathan Stray
Can anyone offer a brief account of how Channels uses threads to service multiple requests? My understanding is that there are multiple workers, and I imagine each is a thread which can handle one request (Django view-style request) at a time. Is this correct? I also don't quite understand how

GSoC 2018 - Formset Improvements

2018-03-20 Thread 岩嶋邦幸
Hello, developers. I am Kuniyuki Iwashima, Japanese. I have been working for preparing a proposal about formset improvements. I have read the idea list and source code forms/formset.py and forms/models.py. Then, I found it is easy to pass arguments to inner forms by passing them to the form_kwa

Re: maximum number of connection using django-channels

2018-03-20 Thread Andrew Godwin
Hi John, It's impossible to give any accurate estimate of performance numbers as it depends so heavily on hardware. Instead, I can point out to you likely bottlenecks: - Each instance of Daphne can only terminate so many connections. I would hope this is above 1000 on any reasonable machine. - Ea

Re: Problem in makemigration

2018-03-20 Thread utpalbrahma1995
sorry sir. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this

Re: Problem in makemigration

2018-03-20 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support. Use the django-users mailing list for that, or IRC #django on freenode, or a site like Stack Overflow. On 20 March 2018 at 13:26, wrote: > Django is unable to detect new changes i have made in my models.py.I even > delet

Problem in makemigration

2018-03-20 Thread utpalbrahma1995
Django is unable to detect new changes i have made in my models.py.I even deleted my database What is the solution? -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop r

Re: maximum number of connection using django-channels

2018-03-20 Thread John Carrell
Can I please ask a clarifying question? You examples above ("if you had 1 clients...") spoke to clients sending the messages. I have a use case where the clients are never (at the moment) sending messages but rather listening for messages from the server. When the server has something to sa

SCoC 2018 - introduction(librarie support django)

2018-03-20 Thread amr anwar
*it's not a proposal, I'll just say the main idea to get your great feedback then I'll write the Proposal if it's possible * *the problem:* when a user submits a Django Form, the entire page will be refreshed to get the response from the Server or show the response message - in login page for e