Changes between Initial Version and Version 1 of Ticket #25878, comment 18
- Timestamp:
- Dec 31, 2015, 1:00:59 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25878, comment 18
initial v1 1 1 @timgraham I did have a problem with my 404 template, which I didn't realize until I saw this ticket. I had a custom 404 handler and it was not setting a 404 status_code. So because it was returning 200, APPEND_SLASH was never activated. 2 2 The template itself worked fine, it was just the status_code causing problems. 3 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. 5 6 I don't know if this is the best idea, but Django could set the status_code automatically for cases like this.