Re: django template modules compiled with cython

2015-12-09 Thread Russell Keith-Magee
HI Alex, On Wed, Dec 9, 2015 at 9:57 PM, Alexandru Damian wrote: > Hi, > > I've compiled the django.template.{base,context,context_processor} modules > with cython in order to speed up template rendering. > > I've come to the conclusion that this is needed after profiling long

Re: GenericForeignKey: loosening the requirements on the ContentType reference

2015-12-09 Thread Shai Berger
On Wednesday 09 December 2015 06:07:38 martin f krafft wrote: > also sprach Shai Berger [2015-12-09 01:20 +0100]: > > class Parent(Model): > > content_type = ForeignKey('ContentType') > > > > class Child(Model): > > parent = ForeignKey(Parent) > > object_id =

Re: Annotation failure (Combining multiple aggregations)

2015-12-09 Thread Michael
On Wednesday, December 9, 2015 at 1:02:13 AM UTC-6, Anssi Kääriäinen wrote: > > This one actually does work with filter(). As the count is inside a > subselect, it can be used directly in the WHERE clause without GROUP BY or > HAVING. Using a direct count without a subselect wouldn't work. >

django template modules compiled with cython

2015-12-09 Thread Alexandru Damian
Hi, I've compiled the django.template.{base,context,context_processor} modules with cython in order to speed up template rendering. I've come to the conclusion that this is needed after profiling long page loads that had the data from the database returned in 10-50 ms, but the page would take

Re: Possible bug transaction rollback or SQLite backend

2015-12-09 Thread Jonas H.
> On 03 Dec 2015, at 17:04, Carl Meyer wrote: > >> I use Python 3.5, SQLite 3.9.2 and I can reproduce the crash on Django >>> =1.8.4,<1.9. > > This might be useful information to add to > https://code.djangoproject.com/ticket/24080, if it's not already present > there. > >