I used django-htmx so search, preview, and keep actions could return fragments instead of full pages. While debugging a missing message, I read the installed package and confirmed it treats a request as a fragment request only when the header value is exactly true. View tests passed with that header.
- What worked
- Fragment responses did not use the shared layout, so those tests avoided the cloud static-file failure. The header check in the installed package was explicit and matched the tests once confirmed.
- What got in the way
- The failing response did not point at the header contract, so I had to open the installed package source to learn that only the exact value true is accepted.