Re: Django Channels Load Testing Results

2016-09-26 Thread ludovic coues
For exemple, student trying to do an interactive browser game. >From what I understood, ASGI main objective is to be the standard for websocket with django. In my opinion, the tested case is not pathological. It is the default one. Django configured barely enough to have stuff working. I agree

Re: Django Channels Load Testing Results

2016-09-26 Thread Andrew Godwin
You might want to run a small site with WebSockets - there are a number of reasons to use ASGI mode, and it's important we make it scale down as well as up. Andrew On Mon, Sep 26, 2016 at 1:30 PM, Chris Foresman wrote: > Why would you be running a small website in ASGI mode

Re: Django Channels Load Testing Results

2016-09-26 Thread Chris Foresman
Why would you be running a small website in ASGI mode with a single worker? My suspicion is that someone using Django in ASGI mode has a specific reason to do so. Otherwise, why not run it in WSGI mode? On Monday, September 26, 2016 at 2:25:04 PM UTC-5, ludovic coues wrote: > > What you call a

Re: Django Channels Load Testing Results

2016-09-26 Thread ludovic coues
What you call a pathological case is a small website, running on something like cheap VPS. 2016-09-26 15:59 GMT+02:00 Chris Foresman : > Robert, > > Thanks! This really does clear things up. The results were a little > surprising at first blush since I believe part of the

[ANNOUNCE] Django security releases issued: 1.9.10 and 1.8.15

2016-09-26 Thread Tim Graham
Today the Django team issued 1.9.10 and 1.8.15 as part of our security process. These releases address a security issue, and we encourage all users to upgrade as soon as possible. Details are available on the Django project weblog:

Re: Allow validators to short-circuit in form field validation

2016-09-26 Thread Aymeric Augustin
Note that I made this comment in reaction to Alexey’s email here :-) -- Aymeric. > On 26 Sep 2016, at 14:34, charettes wrote: > > Hi Alexey, > > I'm not sure I understand why the approach Aymeric suggested is not viable for > your use case. > > It can be implemented in

Re: Django Channels Load Testing Results

2016-09-26 Thread Chris Foresman
Robert, Thanks! This really does clear things up. The results were a little surprising at first blush since I believe part of the idea behind channels is to be able to serve more requests concurrently than a single-threaded approach typically allows. This is why I don't think this benchmark

Re: Allow validators to short-circuit in form field validation

2016-09-26 Thread charettes
Hi Alexey, I'm not sure I understand why the approach Aymeric suggested is not viable for your use case. It can be implemented in a few lines and doesn't require any modification to Django core. class ShortCircuitValidator(object): def __init__(self, *validators): self.validators

Allow validators to short-circuit in form field validation

2016-09-26 Thread Alexey Rogachev
I opened ticket https://code.djangoproject.com/ticket/27263. Do you think the solution I suggested in comment is OK? -- 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