Changes between Initial Version and Version 1 of Ticket #29364, comment 5
- Timestamp:
- May 9, 2018, 6:24:14 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29364, comment 5
initial v1 4 4 5 5 * 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.) 7 7 * Otherwise subclassing CommonMiddleware to allow a more sophisticated (conditional) handling. 8 8 * Adjust URL pattern to make trailing slash optional. 9 9 * (... and so on...) 10