Interactive shell for debugging with Plone 6 docker-compose: The wsgi equivalent of bin/instance debug

You might need to do:

from zope.globalrequest import setRequest
setRequest(app.REQUEST)

to make sure that the request is fully set up for any code that uses zope.globalrequest.getRequest

1 Like