#25878: APPEND_SLASH doesn't work with DEBUG=False when template/404.html is
erroneous
---------------------------------+-------------------------------------
Reporter: kuna | Owner: timgraham
Type: Bug | Status: assigned
Component: HTTP handling | Version: 1.9
Severity: Release blocker | Resolution:
Keywords: slash,debug | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+-------------------------------------
Comment (by tripples):
@timgraham I have exact case like @pulsedemon. My 404 handler was
returning 200 status code instead of 404. However, I have tried
APPEND_SLASH=True and even with APPEND_SLASH=True it was not hitting
correct required response. Only difference I was noticing was, with
DEBUG=True I was hitting correct response.
1. DEBUG=True
Always gives correct response.
2. DEUBG=FalseAPPEND_SLASH not set.
OR DEBUG = False and APPEND_SLASH set.
Returning 404 handler with status code 200.
I will check if I can get sample project for reproducing issue.
Also minor query, does Site models or related settings can have any
impact in this issue?
--
Ticket URL: <https://code.djangoproject.com/ticket/25878#comment:20>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.d176a513253483b5b9095d2e2bb8867e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.