Klaas van Schelven c811ddb6fb Don't call the view yourself (and return a result) from process_view
calling the view yourself short-circuits the correct handling, which is not
what we want. It's not abundantly clear from the docs that this is generally
not what we want, but it is cimplied:

> It should return either None or an HttpResponse object. If it returns None,
> Django will continue processing this request, executing any other
> process_view() middleware and, then, the appropriate view. If it returns an
> HttpResponse object, Django won’t bother calling the appropriate view; it’ll
> apply response middleware to that HttpResponse and return the result.

We don't want to do any short-circuiting here, we just want to measure time
and have a view_name to display. Moving stuff around fixes it.

(That this was an error became clear when I wanted to do process_exception
in another Middleware, and that was never called)
2024-05-27 13:54:02 +02:00
2024-05-17 10:14:09 +02:00
2024-03-30 11:56:29 +01:00
2024-05-16 10:36:55 +02:00
2024-05-13 14:57:47 +02:00
2024-05-22 09:37:51 +02:00
2024-05-27 13:54:01 +02:00
2024-05-16 10:31:59 +02:00
2024-05-27 13:54:01 +02:00
2024-01-04 20:37:26 +01:00
2023-10-29 16:43:39 +01:00
2024-05-15 13:32:11 +02:00
2024-03-20 17:37:27 +01:00
Description
No description provided
Readme 6.2 MiB
Languages
Python 80.6%
HTML 17.5%
CSS 0.9%
JavaScript 0.6%
Shell 0.3%
Other 0.1%