| Index: README.md |
| diff --git a/README.md b/README.md |
| index c7d2cb182d5d3171a553c1f50ef599bf5f7f3289..20c505fe22628c96d10b15757189dc59552bc8a0 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -33,6 +33,18 @@ parameter of `runserver.py`. This will start a local web server on port 5000, |
| e.g. the page the page `pages/example.md` will be accessible under |
| `http://localhost:5000/en/example`. |
| +Sometimes it is useful to test the interaction between some dynamic URL handlers |
| +as defined in the sitescripts repository with an otherwise static site that has |
| +been generated by our CMS. To do this clone the sitescripts repository and |
| +configure the required URL handlers in the `multiplexer` section of your |
| +sitescripts.ini file. Then launch the CMS test server making sure to specify the |
| +`PYTHONPATH` environment variable: |
| + |
| + PYTHONPATH=/path/to/sitescripts ../cms/runserver.py |
| + |
| +_(URL handlers from sitescripts will take precedence over static files and |
| +pages.)_ |
| + |
| Note that the test server is inefficient and shouldn't be run in production. |
| There you should generate static files as explained below. |