On Mon, Sep 28, 2009 at 09:13:40AM -0600, Jeff Hardy wrote:
>On Mon, Sep 28, 2009 at 8:45 AM, Markus Törnqvist <m...@nysv.org> wrote:
>> Just started thinking if it were possible for me to do python web on
>> IIS/NWSGI with anything else than Django, it might even be possible,
>> but what a pain...
>Oh, it's a pain all right. That's why it's called 'being on the
>cutting edge'. :)

I meant using something else than Django, like I wrote my own web framework
in like 2004 or 2005, for mod_python and Apache, but gave up on it because
anything is better ;)

>> Hopefully you figure out how to fix NWSGI :)
>
>Done and done: 
>http://jdhardy.blogspot.com/2009/09/nwsgi-20-release-candidate-1-released.html.
>Let me know how it goes for you (this time, you will need IronPython
>2.6 RC1!).

Sure, I just deployed it.

News, good and bad ;)

It kinda works, hooray!

Good news:

First thing my Django app does is it redirects to see if it can set
a cookie, and that redirection actually happens!!! :)

But it gives me a 404, from IIS (not Django) so I'm guessing my
Web.config is bad.

<!--
  <scriptMappings>
    <scriptMapping scriptName="/" physicalPath="C:\Program Files\IronPython 
2.6\Lib\site-packages\mysite\hello.wsgi" />
  </scriptMappings>
-->
<wildcard physicalPath="C:\Program Files\IronPython 
2.6\Lib\site-packages\mysite\hello.wsgi" callable="application" />

I tried to Google quickly (but it might be more important I get this message
out) if I can make <scriptMapping scriptName="/"> recurse or is my wildcard
tag broken?

I'll try to add the cookie url as a scriptMapping and Google more, tho help
is appreciated as always :)

Bad news:

Also I still get the http://ironpython.pastebin.com/mf52b185
bug if I interrupt the first load after iisreset. Sometimes it's another
traceback, but it's always broken.

It doesn't get better after that, at least not with whatever amount of
refreshes I hit.

Is that a bug in IronPython or NWSGI? ... I'd tend to point to NWSGI
I'm afraid, like off the bat, as a hunch.

>Happy to help. I'm glad someone besides me is interested in getting
>this working.

It seems like Django could be an official part of some official IronPython
test suite, because it does all sorts of crazy stuff - if Django works,
everything works ;)

Thanks a million! :)

-- 
mjt

_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to