[IronPython] Wildcard conf on IIS6

Markus Törnqvist mjt at nysv.org
Wed Oct 21 14:45:48 CEST 2009


On Sun, Oct 18, 2009 at 06:40:57PM -0600, Jeff Hardy wrote:
>2009/10/18 Markus Törnqvist <mjt at nysv.org>:
>> Now http://localhost/ works as well, hooray!
>So you were able to get the HelloWorld app to work using wildcards, correct?

Yeah, like we discussed off-list, it started working.

My mistake was the Verify that file exists checkbox, I thought it was
about the isapi handler file, because I haven't thought of URLs as
files for years :/ But that's what it means, the wildcard would be used
only for paths that also have a physical file in some location...

I'm also catching a flu here, which kinda sets me back, but it might
be NWSGI has issues with Django and paths on another level.

I get redirected to /set_test_cookie/ as expected, but it raises an exception
in django\views\debug.py:246 or so, the exception.args[0]['tried'] part
raises a KeyError.

Hacking around, raise ValueError('|%s|' % exception.args[0]) looks like
 |{'path': 'set_test_cookie/'}|

I traced the problem to urlresolvers.py:199, resolve function, which
raises Resolver404, {'path' : path}

This is tested on Django 1.0.3 and 1.0.4 (with the appropriate patches from
http://bitbucket.org/jdhardy/django-ipy/ of course :)

Jeff, is there something "interesting" in NWSGI and path handling?

I'll probably look at this later, but I'm not feeling up to heavy thinking
right now, monkeying around with this was tough enough with the flu ;)

Thanks!

-- 
mjt




More information about the Ironpython-users mailing list