I'm trying to setup moinmoin WSGI app following instruction from
http://docs.pythonweb.org/display/pylonscookbook/A+Pylons+controller+with+MoinMoin+as+a+WSGI+callable.
It's almost working. Static files are delivered fine. The only problem
is that MoinMoin says "doesn't exist" on every page.
If I open http://127.0.0.1:5000/wiki/
I see this:
This page does not exist yet. You can create a new empty page, or use
one of the page templates. Create new empty page =>
http://127.0.0.1:5000/wiki/wiki?action=edit.
Same for other built-in pages like wiki/RecentChanges. Same for
search. It works, listing matched pages but clicking on one gives
"doesn't exist".
I suspect there is something wrong with path/urls mapping. Note that
edit link contains double wiki/wiki path. How can I debug it/fix it?
In my wikiconfig.py I have
url_mappings = {'/wiki/':''}
Thanks,
Max.
On Jul 30, 10:36 am, "Max Ischenko" <ische...@gmail.com> wrote:
> I'm trying to setup moinmoin WSGI app following instruction fromhttp://docs.pythonweb.org/display/pylonscookbook/A+Pylons+controller+....
>
> It's almost working. Static files are delivered fine. The only problem
> is that MoinMoin says "doesn't exist" on every page.
Cured by adding this line to moinpage() handler:
request.environ['SCRIPT_NAME'] = ''
I suppose this is because I'm using PrefixMiddleware and it confuses
MoinMoin.
Max.