Changes between Initial Version and Version 1 of Ticket #29364, comment 5


Ignore:
Timestamp:
May 9, 2018, 6:24:14 AM (7 years ago)
Author:
Carlton Gibson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29364, comment 5

    initial v1  
    44
    55* Disable `APPEND_SLASH`. This gives you your `404`. It may not actually be desired behaviour.
    6 * As per the CommonMiddleware docstring, subclass CommonMiddleware and overriding the response_redirect_class attribute, returning the `307` response. (Whether that's wise I can't say.)
     6* As per [https://docs.djangoproject.com/en/dev/_modules/django/middleware/common/#CommonMiddleware the CommonMiddleware docstring], subclass CommonMiddleware and overriding the response_redirect_class attribute, returning the `307` response. (Whether that's wise I can't say.)
    77* Otherwise subclassing CommonMiddleware to allow a more sophisticated (conditional) handling.
    88* Adjust URL pattern to make trailing slash optional.
    99* (... and so on...)
    10 
Back to Top