id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 1154,SSI from Apache mod_include directive to django fails,Brian Ray ,Adrian Holovaty,"Django will not accept (server content for) an internal Apache request. In Example: {{{ }}} The result is printed to the browser: {{{ Mod_python error: ""PythonHandler django.core.handlers.modpython"" Traceback (most recent call last): File ""/usr/local/lib/python2.4/site-packages/mod_python/apache.py"", line 299, in HandlerDispatch result = object(req) File ""/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py"", line 165, in handler return ModPythonHandler()(req) File ""/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py"", line 126, in __call__ os.environ.update(req.subprocess_env) File ""/usr/local/lib/python2.4/os.py"", line 478, in update self[k] = dict[k] File ""/usr/local/lib/python2.4/os.py"", line 463, in __setitem__ putenv(key, item) TypeError: putenv() argument 2 must be string, not list }}} And the apache logs say: {{{ [Sun Jan 01 22:10:21 2006] [notice] mod_python: (Re)importing module 'django.core.handlers.modpython' [Sun Jan 01 22:10:21 2006] [error] [client 127.0.0.1] PythonHandler django.core.handlers.modpython: Traceback (most recent call last):, referer: http://127.0.0.1/Test/ [Sun Jan 01 22:10:21 2006] [error] [client 127.0.0.1] PythonHandler django.core.handlers.modpython: File ""/usr/local/lib/python2.4/site-packages/mod_python/apache.py"", line 299, in HandlerDispatch\n result = object(req), referer: http://127.0.0.1/Test/ [Sun Jan 01 22:10:21 2006] [error] [client 127.0.0.1] PythonHandler django.core.handlers.modpython: File ""/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py"", line 165, in handler\n return ModPythonHandler()(req), referer: http://127.0.0.1/Test/ [Sun Jan 01 22:10:21 2006] [error] [client 127.0.0.1] PythonHandler django.core.handlers.modpython: File ""/usr/local/lib/python2.4/site-packages/django/core/handlers/modpython.py"", line 126, in __call__\n os.environ.update(req.subprocess_env), referer: http://127.0.0.1/Test/ [Sun Jan 01 22:10:21 2006] [error] [client 127.0.0.1] PythonHandler django.core.handlers.modpython: File ""/usr/local/lib/python2.4/os.py"", line 478, in update\n self[k] = dict[k], referer: referer: http://127.0.0.1/Test/ [Sun Jan 01 22:10:21 2006] [error] [client 127.0.0.1] PythonHandler django.core.handlers.modpython: File ""/usr/local/lib/python2.4/os.py"", line 463, in __setitem__\n putenv(key, item), referer: referer: http://127.0.0.1/Test/ [Sun Jan 01 22:10:21 2006] [error] [client 127.0.0.1] PythonHandler django.core.handlers.modpython: TypeError: putenv() argument 2 must be string, not list, referer: referer: http://127.0.0.1/Test/ }}} ",defect,closed,Core (Other),dev,normal,wontfix,"mod_python, SSI",bray@…,Unreviewed,0,0,0,0,0,0