Re: Django and CSP strict-dynamic

2017-05-22 Thread Adam Johnson
> > I agree; note however, that nonces are part of CSP Level 2, which is in > "W3C Recommendation" status Ah, I am not familiar with all these standards, thanks for clarifying. The first part I think Django should be involved in in generating the nonce > (a simple base64(os.random(16)) and

Pre-DEP: Meta.without_primary_key (related to CompositeFields)

2017-05-22 Thread sky . duveen
Hi, We have several legacy database tables that don't have primary keys. With older versions of Django, we've hacked it by lying about a field that was not a primary key but recent Django versions validate pks more strictly. Some (but not all) of our legacy tables have multiple primary keys --

Re: PostgreSQL aggregation and views through unmanaged models

2017-05-22 Thread jroes
Thanks for that extensive write up! As the reporter of #27241 it seems I would be arguing against my own self interest when I say that I'm not in favour of the patch, but my reasonings are as follows: * The current behaviour is preferable in the vast majority of cases, only a couple of

Re: Cython usage within Django

2017-05-22 Thread Florian Apolloner
On Monday, May 22, 2017 at 1:30:20 AM UTC+2, Tom Forbes wrote: > > As I understand it the Django project itself would not distribute > pre-compiled wheels, the setup.py Cython 'stuff' would handle this (and > fail gracefully if anything goes wrong, like no C compiler being > available). >

Re: Cython usage within Django

2017-05-22 Thread Adam Johnson
FYI a colleague and I tried Cythonizing parts of django.template in 2015, we shared our findings on this list: https://groups.google.com/forum/#!topic/django-developers/CKcZwC3J1eQ . We didn't build it in Django core or a fork, our package replaced parts of Django as they imported using an import