<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 17, 2016 at 10:36 PM, Thomas De Schampheleire <span dir="ltr"><<a href="mailto:patrickdepinguin@gmail.com" target="_blank">patrickdepinguin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I noticed that our custom error pages (e.g. on 404) do not work.<br>
<br>
Do you have some idea on what is wrong, or can you guide me in the<br>
right direction?<br></blockquote><div><br></div><div>When an error is detected TurboGears replaces the request with a request for /error/document.</div><div>And that seems to be happening as your logs contain:</div><div><br></div><div><span style="font-size:13.6px">2016-02-17 22:32:15.266 INFO  [kallithea.lib.base] IP: 127.0.0.1 User: </span><span style="font-size:13.6px"><AuthUser('id:1[default] auth:True')> accessed /error/document</span><br></div><div><br></div><div>Might it be related to the fact that ErrorController had an empty __before__? As in TG it is called _before probably you want to rename it as _before if you want to throw away the behaviour provided by BaseController.</div><div><br></div><div>If it still doesn't work you probably want to copy an error controller from a quickstarted project <a href="https://github.com/TurboGears/tg2devtools/blob/master/devtools/templates/turbogears/%2Bpackage%2B/controllers/error.py_tmpl">https://github.com/TurboGears/tg2devtools/blob/master/devtools/templates/turbogears/%2Bpackage%2B/controllers/error.py_tmpl</a> and mount it inside RootController through standard TG routing <a href="https://github.com/TurboGears/tg2devtools/blob/master/devtools/templates/turbogears/%2Bpackage%2B/controllers/root.py_tmpl#L57">https://github.com/TurboGears/tg2devtools/blob/master/devtools/templates/turbogears/%2Bpackage%2B/controllers/root.py_tmpl#L57</a> just to test if it's a controller or configuration problem.</div><div><br></div><div><br></div></div></div></div>