Re: Partial indexes, PR help

2018-07-23 Thread Christophe Pettus
> On Jul 23, 2018, at 13:05, Christophe Pettus wrote: > > >> On Jul 23, 2018, at 12:20, Mads Jensen wrote: >> >> Q(published__gt=datetime.date(2017, 10, 1)) >> => >> "table"."published" > '2017-10-01'::timestamp; >> >> is unfortunate because it turns the function mutable, and the index can

Connecting to remote host like Twitch to monitor chat using websockets

2018-07-23 Thread Dave Holly
Greetings, Is it possible to use Django Channels and websockets to monitor the chat in twitch rooms, or other sites with chat rooms? I would like to display extra graphics for users who send cheers of high amounts, like 1000, 2000, etc. I have the display worked out in Django where I'm monito

Re: App static files (#29586)

2018-07-23 Thread Claude Paroz
Le lundi 23 juillet 2018 21:17:24 UTC+2, Claude Paroz a écrit : > I'll see if I can add subresource integrity support to demonstrate a > potential added value. > Just for feasibility's sake, here's a quick (and probably dirty) way to implement subresource integrity based on the new code. https

Re: Partial indexes, PR help

2018-07-23 Thread Christophe Pettus
> On Jul 23, 2018, at 12:20, Mads Jensen wrote: > > Q(published__gt=datetime.date(2017, 10, 1)) > => > "table"."published" > '2017-10-01'::timestamp; > > is unfortunate because it turns the function mutable, and the index can > therefore not be created (exact error message can be seen in the

Partial indexes, PR help

2018-07-23 Thread Mads Jensen
Hi, I've opened a PR to add support for partial indexes in Django. It's on the right track, but I bumped into an issue that I need help with. On PostgreSQL, the cast that's introduced when doing something like: Q(published__gt=datetime.date(2017, 10, 1)) => "table"."published" > '2017-10-01':

Re: App static files (#29586)

2018-07-23 Thread Claude Paroz
Le lundi 23 juillet 2018 20:32:55 UTC+2, Florian Apolloner a écrit : > > Hi Claude, > > On Monday, July 23, 2018 at 8:14:23 PM UTC+2, Claude Paroz wrote: >> >> Sure, the idea is to put a base structure in place to support such >> functionalities at a later stage (in core or as 3rd party like >> d

Re: App static files (#29586)

2018-07-23 Thread Florian Apolloner
Hi Claude, On Monday, July 23, 2018 at 8:14:23 PM UTC+2, Claude Paroz wrote: > > Sure, the idea is to put a base structure in place to support such > functionalities at a later stage (in core or as 3rd party like > django-compressor). > I am just a little bit worried about adding this without

Re: App static files (#29586)

2018-07-23 Thread Claude Paroz
Le lundi 23 juillet 2018 18:12:32 UTC+2, Florian Apolloner a écrit : > > Hi Claude, > > a few things after a quick glance at it. Overall the feature seems rather > simple and I do not see any reason why this would have to be in core from > the start; ie it could easily evolve as a 3rd party app.

Re: App static files (#29586)

2018-07-23 Thread Michael Manfre
On Mon, Jul 23, 2018 at 12:12 PM Florian Apolloner wrote: > * Any thoughts on asset pipelines? > This seems like it would be critical functionality. It might also help users to avoid potential asset ordering issues without needing to create more apps to resolve conflicts. Regards, Michael Manf

Re: App static files (#29586)

2018-07-23 Thread Florian Apolloner
Hi Claude, a few things after a quick glance at it. Overall the feature seems rather simple and I do not see any reason why this would have to be in core from the start; ie it could easily evolve as a 3rd party app. I am not that much into frontend dev, but from my experience a few things popp

App static files (#29586)

2018-07-23 Thread Claude Paroz
Hi, I just created a new feature request [1] to be able to define static files per application, including a POC patch [2]. [1] https://code.djangoproject.com/ticket/29586 [2] https://github.com/django/django/pull/10218 Feel free to discuss it here for general discussion on the feature utilit

Request middleware

2018-07-23 Thread Melvyn Sopacua
Hi, in our codebase we made use of this gist[1], which relies on a private API, but more importantly, creates requests without going through the response chain. This is relevant for catching exceptions in Middleware: there were two tests that explicitly test for DISALLOWED_HOST and I had to re

Re: Type hints, PEP 561, and mypy-django

2018-07-23 Thread Luke Murphy
FYI we're chatting on https://gitter.im/mypy-django/Lobby about organising this. Feel free to drop by there. On 0, Luke Murphy wrote: Hi folks, Following a short discussion over at: https://github.com/machinalis/mypy-django/issues/9, There is some renewed interest in getting stuck into t