moinmoin WSGI integration

2 views
Skip to first unread message

Max Ischenko

unread,
Jul 30, 2007, 3:36:54 AM7/30/07
to pylons-...@googlegroups.com
Hello,

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.

Max Ischenko

unread,
Jul 30, 2007, 3:44:43 AM7/30/07
to pylons-discuss
Hello,

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.

Reply all
Reply to author
Forward
0 new messages