Re: Template.render(Context) in django 1.10+

2018-03-12 Thread Craig de Stigter
ure what I'm saying except that maybe the old-style Template class just needs to be removed to avoid confusion. On Tue, 13 Mar 2018 at 14:50 Mike Dewhirst wrote: > On 13/03/2018 11:44 AM, Craig de Stigter wrote: > > Thanks for the reply. > > So I guess there are actually now t

Re: Template.render(Context) in django 1.10+

2018-03-12 Thread Craig de Stigter
just use the new-style templates, which means we have to avoid using `django.template.Template` at all. Perhaps it could be deprecated and removed? Cheers Craig de Stigter On Monday, 12 March 2018 11:21:41 UTC+13, Daniel Roseman wrote: > > On Sunday, 11 March 2018 21:06:51 UTC, Craig de S

Template.render(Context) in django 1.10+

2018-03-11 Thread Craig de Stigter
in.py:3: RemovedInDjango110Warning: render() must be called with a dict, not a Context. This is a surprising warning to me, since the docs still document the use of Template.render(Context) in 2.0: https://docs.djangoproject.com/en/2.0/ref/templates/api/#rendering-a-context Would someone mind explain

Error dynamically adding a field to a model in Django 1.7

2014-09-21 Thread Craig de Stigter
<https://gist.github.com/craigds/b53cf8a8110530436c7a>) Seems the migration system isn't handling the monkey-patched field properly. Does anyone know how to avoid this? Cheers Craig de Stigter -- You received this message because you are subscribed to the Google Groups "Django

Re: memory leak in django 1.5

2013-03-24 Thread Craig de Stigter
Just confirming that this fixed the memory leak problem for us. Thanks again :) On Friday, March 22, 2013 3:07:02 PM UTC+13, Craig de Stigter wrote: > > Karen Tracey saves the day! > > Thanks so much, seems likely that's it :) > > Craig de Stigter > > On Friday, Mar

Re: memory leak in django 1.5

2013-03-21 Thread Craig de Stigter
Karen Tracey saves the day! Thanks so much, seems likely that's it :) Craig de Stigter On Friday, March 22, 2013 2:25:04 PM UTC+13, Karen Tracey wrote: > > On Thu, Mar 21, 2013 at 9:00 PM, Craig de Stigter > > > wrote: > >> Hi everyone >> >> (cross-p

Re: memory leak in django 1.5

2013-03-21 Thread Craig de Stigter
Karen Tracey saves the day! Thanks so much, seems likely that's it :) Craig de Stigter On Friday, March 22, 2013 2:25:04 PM UTC+13, Karen Tracey wrote: > > On Thu, Mar 21, 2013 at 9:00 PM, Craig de Stigter > > > wrote: > >> Hi everyone >> >> (cross-p

memory leak in django 1.5

2013-03-21 Thread Craig de Stigter
een unable to reproduce the bug on a dev server, and I'm not comfortable with doing `git bisect` on our production box ;) I've tried using Dozer to track down the leak but it appears to cause apache to segfault with annoying regularity before finding anything of consequence. Any tips

django-typed-models - sane single-table model inheritance

2012-02-19 Thread Craig de Stigter
etrieval of multiple types of subclasses, all in one query. See the readme on that github link for an example. Please let me know what you think! And file issues if you have some. Cheers Craig de Stigter Koordinates Ltd -- You received this message because you are subscribed to the Google Groups &q