Changes between Version 1 and Version 2 of Ticket #25878, comment 18


Ignore:
Timestamp:
12/31/15 19:01:11 (7 years ago)
Author:
Michael Squashic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25878, comment 18

    v1 v2  
    22The template itself worked fine, it was just the status_code causing problems.
    33
    4 I think that when I first created the custom hander by pointing handler404 to my custom view, I assumed that the status code would be set automatically and never thought about checking it.  But it makes sense that handling the 404 like this would require implementing the status_code as well. 
     4I think that when I first created the custom handler by pointing handler404 to my custom view, I assumed that the status code would be set automatically and never thought about checking it.  But it makes sense that handling the 404 like this would require implementing the status_code as well. 
    55
    66I don't know if this is the best idea, but Django could set the status_code automatically for cases like this.
Back to Top