On 24 Jul 2006, at 01:17, Jacob Kaplan-Moss wrote:

>> Has anybody else seen this error? It's obvious that Http404 doesn't
>> have the method, it's just a subclass of Exception. If this is just a
>> Django bug, I'll happily post a patch, just want to feel out any
>> possible stupidness on my part first :-)
>
> You're probably doing ``return Http404`` instead of ``raise Http404``.

It would be nice if we could catch this and provide a friendly error  
message, maybe by having an assertion somewhere that checks that the  
view function has returned an object that is an instance (or  
subclass) of HttpResponse.

Cheers,

Simon


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to