Code

Opened 5 years ago

Closed 5 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: UI/UX:

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 5 years ago.
Added documentation about APPEND_SLASH behaviour.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by mikelim

Added documentation about APPEND_SLASH behaviour.

comment:1 Changed 5 years ago by mikelim

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by ubernostrum

  • Resolution set to invalid
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.