Django 1.3 and PyISAPIe + URL Problem

46 views
Skip to first unread message

Benjamin Hammerich

unread,
Jul 22, 2011, 6:18:44 AM7/22/11
to PyISAPIe
Hi,

I am not sure if this is a PyISAPIe specific problem or a problem of
my Django configuration, but maybe someone can point me where to find
the answer.

I installed Django (1.3) and PyISAPIe (RC4) on IIS7 and everything
seems to run smooth except one thing

When access my django test app by domain/polls/ it works great but if
I try to access is with domain/polls the URL points to "domain/polls/,
domain/polls/" that doesn't exist of course...

Thanks for help!


Randy Syring

unread,
Jul 22, 2011, 8:56:35 AM7/22/11
to pyis...@googlegroups.com
My guess is that Django is automatically redirecting URLs w/out a slash
to the URL w/ a slash:

https://docs.djangoproject.com/en/dev/ref/settings/#append-slash

And for why its not working correct? Probably has to do w/ the way
Django constructs URLs from the headers/environ IIS sends it. I know,
in the past, I have had to monkey w/ the WSGI environment to get
Werkzeug to handle it correctly. It has to do with how PATH_INFO and
SCRIPT_ROOT come through I believe, but that may not be your problem here.

--------------------------------------
Randy Syring
Intelicom
Direct: 502-276-0459
Office: 502-212-9913

For the wages of sin is death, but the
free gift of God is eternal life in
Christ Jesus our Lord (Rom 6:23)

Reply all
Reply to author
Forward
0 new messages