Opened 15 years ago

Closed 15 years ago

#11092 closed (invalid)

APPEND_SLASH behaviour in DEBUG mode not documented

Reported by: mikelim Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords: APPEND_SLASH, not working
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The APPEND_SLASH setting is disabled in DEBUG mode.

However, this feature is not documented. I spent a few minutes asking on IRC, and then eventually figuring it out myself. No one else should spend this time. :)

Attachments (1)

append_slash_doc.patch (723 bytes ) - added by mikelim 15 years ago.
Added documentation about APPEND_SLASH behaviour.

Download all attachments as: .zip

Change History (3)

by mikelim, 15 years ago

Attachment: append_slash_doc.patch added

Added documentation about APPEND_SLASH behaviour.

comment:1 by mikelim, 15 years ago

Has patch: set

comment:2 by James Bennett, 15 years ago

Resolution: invalid
Status: newclosed

APPEND_SLASH happens regardless of the value of DEBUG. There is a special error case that we look at -- when DEBUG is True, if and only if you do an HTTP POST to a URL that should have a trailing slash but doesn't, we raise an exception warning you that doing this will discard the POST data. But if you look at the actual code in Django you'll see quite clearly that DEBUG does not affect whether the redirect is issued.

Note: See TracTickets for help on using tickets.
Back to Top