in csp/middleware.py [0:0]
def _csp_nonce_post_response() -> None:
raise CSPNonceError(
"The 'csp_nonce' attribute is not available after the CSP header has been written. Consider adjusting your MIDDLEWARE order."
)