Re: PEP 484 type hinting in Django

2016-08-16 Thread Markus Holtermann
Hi Alex, I haven't heard of any discussion on that topic. I'd certainly like to have a DEP before we start implementing it, though. Cheers, Markus On Wed, Aug 17, 2016 at 04:08:29AM +, Alexander Hill wrote: Hi all, I like the plan to include PEP 484 type hinting in Django, outlined in

PEP 484 type hinting in Django

2016-08-16 Thread Alexander Hill
Hi all, I like the plan to include PEP 484 type hinting in Django, outlined in the PyCharm promotion blog post. [1] Has this proposal been fleshed out much? Is there any extra information available anywhere that I've missed? I think this will be great for Django, and I'd happily contribute to

Re: Any inerest in Zlib pre-compressed HTML generator responses?

2016-08-16 Thread Bobby Mozumder
> On Aug 16, 2016, at 2:16 AM, Curtis Maloney wrote: > > On 16/08/16 09:10, Bobby Mozumder wrote: >> Hi, >> >> I also use generators for my views, and I use Django’s streaming views >> with my generators to stream responses, so that the web browser receives >> early

Re: Any inerest in Zlib pre-compressed HTML generator responses?

2016-08-16 Thread Bobby Mozumder
I’ll look into what it would take to make it a separate package, to make it more generic and usable by all. I was pushing for this to be part of the core to overcome Django’s “slow-by-default” impression. My first version of this site had access times in the several second range, and it took

Re: Support for `Q` objects in `get_or_create` and `update_or_create`

2016-08-16 Thread Flavio Curella
It didn't occur to me that it could be done that way. Thanks! I'm closing the ticket as 'invalid' On Tuesday, August 16, 2016 at 2:03:02 PM UTC-5, charettes wrote: > > Hi Flavio, > > Is there a reason we can't document chaining filter() with these methods > when > querying with Q() objects? >

Re: Support for `Q` objects in `get_or_create` and `update_or_create`

2016-08-16 Thread charettes
Hi Flavio, Is there a reason we can't document chaining filter() with these methods when querying with Q() objects? Person.objects.filter( Q(first_name='George') | Q(first_name='Bruce') ).get_or_create(defaults={'last_name': 'Harrison'}) If `defaults` was stil only passable as a kwarg this

Support for `Q` objects in `get_or_create` and `update_or_create`

2016-08-16 Thread Flavio Curella
I'm thinking about adding support for `Q` to `get_or_create` and `update_or_create`. I've summarized my thoughts at https://code.djangoproject.com/ticket/27070. I have a couple of unsolved question; the most critical is the one Tim raises: if we were to add another keyword argument to those

Re: Google Summer of Code Updates - Class based indexes

2016-08-16 Thread thinkwelldesigns
Thank you, akki, for this project! Have enjoyed following your progress. It'll be something I'm going to make significant use of. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this

Re: Google Summer of Code Updates - Class based indexes

2016-08-16 Thread akki
- Add support for column ordering (ASC/DESC) in class based indexes - !6982 , #20888 The PR has been merged. More on using it over here

Re: Any inerest in Zlib pre-compressed HTML generator responses?

2016-08-16 Thread Curtis Maloney
On 16/08/16 09:10, Bobby Mozumder wrote: Hi, I also use generators for my views, and I use Django’s streaming views with my generators to stream responses, so that the web browser receives early responses and start rendering immediately before the view is completely processed. The web browser

Re: Any inerest in Zlib pre-compressed HTML generator responses?

2016-08-16 Thread Jani Tiainen
Hi, To me it looks like this can live just fine outside Django core as a separate package since it doesn't look that it requires any changes to Django core itself. So for the community it doesn't need to be within Django core, you can already do it for all existing and future versions -