From: Tim L. <ti...@fr...> - 2009-09-24 19:01:19
|
OK, I found the source of my problem. Django looks for a SCRIPT_URL parameter, which Apache will set if mod_rewrite is being used. While not really a YAWS issue, I was receiving the front (default) page for every request. Django takes a settings parameter (FORCE_SCRIPT_NAME = '') which fixes this when using YAWS in front. I haven't added this to the wiki entry at http://wiki.github.com/klacke/yaws/run-django-under-yaws, perhaps someone with an ID on github could do so. In any case, my digging into the FastCGI protocol, packets and various source code was most enlightening. <grin> Cheers, Tim -- I have an existential map. It has "You are here" written all over it. -- Steven Wright |