Re: New way to run your Django projects

2012-03-18 Thread Justin Holmes
; To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to django-users+unsubscribe@** > googlegroups.com . > For more options, visit this group at http://groups.google.com/** > group/django-users?hl=en<http://groups.googl

Http404 and process_exception

2012-03-27 Thread Justin Holmes
Heretofore, I had always believed that Http404 did not cause Middleware process_exception() to be run. Am I right in this thinking? I have a get_object_or_404 that, when the object in question isn't found, is running process_exception. -- Justin Holmes Head Instructor, SlashRoot Colle

Re: Http404 and process_exception

2012-03-28 Thread Justin Holmes
ink though that I simply hadn't raised Http404 since implementing this middleware. It makes perfect sense that it behaves the way it does. On Tue, Mar 27, 2012 at 11:29 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On 28/03/2012, at 6:31 AM, Justin Holmes wro

Re: Http404 and process_exception

2012-03-30 Thread Justin Holmes
necessary at all, as the Http404 page makes it clear that it's an exception. On Wed, Mar 28, 2012 at 7:22 PM, Russell Keith-Magee wrote: > > > On 29/03/2012, at 12:10 AM, Justin Holmes wrote: > > > Russell, > > > > Thanks for the reply. > > > > T

test_invalid_key failing

2011-10-04 Thread Justin Holmes
I am having a problem with contrib.sessions.tests.test_valid_key (line 159). It's a mixin which in the failure case is mixed with CacheDBSessionTests. The test raises: "AttributeError: 'bool' object has no attribute 'get'" The error is actually raised by session.save() on 164. Stepping inward

contrib.auth tests - not respecting TEMPLATE_DIRS?

2011-10-10 Thread Justin Holmes
s) specified in the TEMPLATE_DIRS setting. The same code is executed just fine in production. -- Justin Holmes Head Instructor, SlashRoot Collective SlashRoot: Coffee House and Tech Dojo 60 Main Street New Paltz, NY 12561 845.633.8330 -- You received this message because you are subscribe

django-deeper

2011-12-28 Thread Justin Holmes
elcome growth in this direction. http://groups.google.com/group/django-deeper -- Justin Holmes Head Instructor, SlashRoot Collective SlashRoot: Coffee House and Tech Dojo 60 Main Street New Paltz, NY 12561 845.633.8330 -- You received this message because you are subscribed to the Google Groups "Djang

ORM Question

2014-04-01 Thread Justin Holmes
might be able to use annotate: LlamaHerd.annotate(largest_llama=Max('llama__size')).order_by('largest_llama__dob') ...but the annotate here creates fields with float values, not with the model instances. -- Justin Holmes Chief Chocobo Breeder, slashRoot slashRoot: Coffee Hou

Re: ORM Question

2014-04-01 Thread Justin Holmes
Tue, Apr 1, 2014 at 6:09 PM, Bill Freeman wrote: > Aren't you missing a ForeignKey relationship to tell which LlamaHerd a > Llama belongs to? > > Then you would use the reverse relation manager in LlamaHerd to build up > your annotation. > > > On Tue, Apr 1, 2014 at 5:

Re: ORM Question

2014-04-01 Thread Justin Holmes
You say "use the reverse relation manager in LlamaHerd to build up your annotation," but that answer the question. How can I sort LlamaHerd objects by the DOB of their largest llama? On Tue, Apr 1, 2014 at 6:13 PM, Justin Holmes wrote: > Yes, absolutely - my bad. I have updated t

Re: ORM Question

2014-04-02 Thread Justin Holmes
is fixed, your original > annotate might work. > > > On Tue, Apr 1, 2014 at 6:20 PM, Justin Holmes wrote: > >> You say "use the reverse relation manager in LlamaHerd to build up your >> annotation," but that answer the question. >> >> How can I sort LlamaH

Re: ORM Question

2014-04-02 Thread Justin Holmes
It's called LlamaHerd. >>> >>> 2. I was misinterpreting what you wanted (couldn't get past the lack of >>> a relationship while reading0. Once the relationship is fixed, your >>> original annotate might work. >>> >>> >>> On T