Re: Adding UNION/INTERSECT/EXCEPT to the ORM

2017-01-11 Thread charettes
+1 to QuerySet.difference() Le mercredi 11 janvier 2017 17:00:12 UTC-5, sebleier a écrit : > > We cannot use the name "QuerySet.except()" since except is a reserved word >> in Python. Do you prefer minus() (as suggested by Florian), except_() (as >> done by SQLAlchemy), or something else? >> >>

Re: Adding UNION/INTERSECT/EXCEPT to the ORM

2017-01-11 Thread Sean Bleier
> > We cannot use the name "QuerySet.except()" since except is a reserved word > in Python. Do you prefer minus() (as suggested by Florian), except_() (as > done by SQLAlchemy), or something else? > > Can I suggest using "QuerySet.difference"? It's what python's sets use for achieving the same fu

Re: Adding UNION/INTERSECT/EXCEPT to the ORM

2017-01-11 Thread Tim Graham
We cannot use the name "QuerySet.except()" since except is a reserved word in Python. Do you prefer minus() (as suggested by Florian), except_() (as done by SQLAlchemy), or something else? On Monday, December 26, 2016 at 6:28:15 PM UTC-5, Adam Johnson wrote: > > Yes it's different, they cannot b

Re: How to Integrate Django with Angular 2

2017-01-11 Thread Asif Saifuddin
This is not the place to ask such kind of questions, please post to django-users as this list is for discussing django internals. On Thursday, January 12, 2017 at 1:08:29 AM UTC+6, Mohit Saran wrote: > > How to Integrate Django with Angular 2 > -- You received this message because you are subsc

Re: How to Integrate Django with Angular 2

2017-01-11 Thread roboslone
Django is a backend, while Angular is a frontend. You can serve your Angular application in a regular Django template like so: {% load staticfiles %} > On 11 Jan 2017, at 21:02, Mohit Saran wrote: > > How to Integrate Django with Angular 2 > > -- > You received this message because you are

How to Integrate Django with Angular 2

2017-01-11 Thread Mohit Saran
How to Integrate Django with Angular 2 -- 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...@googl

Re: Methodology for increasing the number of PBKDF2 iterations

2017-01-11 Thread Tim Graham
I agree. The question in my mind is how to pick an appropriate number of iterations that we don't risk causing a DoS on (at least most) existing sites due to increased CPU usage. Or at least, can we offer some suggestions about how to tell if your site receives sufficient traffic that you might

Re: changing the default MySQL isolation level to READ COMMITTED

2017-01-11 Thread Patryk Zawadzki
To add some context, REPEATABLE READ can break get_or_create among other things (not sure how many invalid tickets Django gets related to that). -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscri

changing the default MySQL isolation level to READ COMMITTED

2017-01-11 Thread Tim Graham
In ticket #27683 [0], Shai proposed to change Django to default to using the READ COMMITTED isolation level. Some background on the reasons are on the ticket and in another thread [1] (possible data loss is involved). The initial approach [2] that Shai put forward is adding a deprecation warnin

Re: Working towards a simpler GCBV implementation?

2017-01-11 Thread James Bennett
Please read Florian's message. 2.0 is not going to be "we bumped the major version, now we can pile in lots of breaking changes". -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this gro

Re: Working towards a simpler GCBV implementation?

2017-01-11 Thread Sayid Munawar
+1 to use vanilla-views in django 2.0 every time i write some view, i always open https://ccbv.co.uk/ in another tabs :D and trying to figure out where should i make my overrides On Friday, January 6, 2017 at 5:11:37 PM UTC+7, Alex Scott wrote: > > If most everyone agrees that Tom's Vanilla Vie