Changes between Version 1 and Version 2 of Ticket #25878, comment 18
- Timestamp:
- Dec 31, 2015, 1:01:11 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25878, comment 18
v1 v2 2 2 The template itself worked fine, it was just the status_code causing problems. 3 3 4 I think that when I first created the custom hand er 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.4 I 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. 5 5 6 6 I don't know if this is the best idea, but Django could set the status_code automatically for cases like this.