request is not None as it should be within http context