Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs/admin-guide/run-plone.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Buildout:

pip:
: ```shell
bin/zconsole debug instance/etc/zope.ini
bin/zconsole debug instance/etc/zope.conf
```

`cookiecutter-plone-starter`:
Expand All @@ -101,3 +101,11 @@ pip:
```

For any of these commands, press {kbd}`ctrl-d` to stop the process.

### Set a "fake" request

To make sure that the request is fully set up for any code that uses `zope.globalrequest.getRequest` you might need to do:
: ```python
from zope.globalrequest import setRequest
setRequest(app.REQUEST)
```