routes - pylons url_for doesn't yield proper internal static. SCRIPT_NAME is not inserted into the resolved URL -
routes - pylons url_for doesn't yield proper internal static. SCRIPT_NAME is not inserted into the resolved URL -
i integrate pylons applications apache webserver using mod_wsgi. configuration wsgi such:
wsgiscriptalias /mtrace /var/lib/lgmtrace/lgmtrace.wsgi however, using h.url_for within mako template doesn't yield proper url static internal route described in http://pylonsbook.com/en/1.1/urls-routing-and-dispatch.html#internal-static-routes. i've checked environment variable in basecontroller of pylons , script_name has been set /mtrace.
so, decided code of url_for function within routes package. turns out, environ attribute never set config variables returned request_config. result, code calls config.environ.get('script_name') never executed.
i wonder if can help me on matter because i'm stucked on problem quite time already. has faces same situation? how prepare url can resolved correctly. couldn't find results problem on google , stackoverflow, guess must sort of configuration error leads situation. information, utilize default packages provided fedora 14 mod_wsgi (3.2.2), apache server (2.2.17), pylons (1.0), routes (1.12).
thank you.
someone suggested me seek route-1.12.3 see if problem resolved. wasn't resolved using version. heck, work around problem prepending request['script_name'] url in mako template manually. know if has proper reply question.
routes pylons wsgi
Comments
Post a Comment