Alexis Marrero
amarrero at mitre.org
Fri Oct 14 13:52:56 EDT 2005
I tried that same statement and got, PythonImport not allowed here. Syntax error on line 1114 of /Users/amarrero/djp/server/conf/amarre- httpd.conf: PythonImport not allowed here This is the httpd.conf: <VirtualHost core.mitre.org:1973> Alias / "/Users/amarrero/djp/server/webapp/" <Directory "/Users/amarrero/djp/server/webapp/"> SetHandler python-program PythonHandler index PythonPath "sys.path + ['/Users/amarrero/djp/server/webapp/']" PythonDebug On PythonImport server.startup doublecore.mitre.org </Directory> </VirtualHost> Am I missing something in the conf? /amn On Oct 14, 2005, at 1:41 PM, Paul Hide wrote: > Server is: Apache 2.0.54, mod_python 3.1.3 Debian 3.1 > Client is Firefox 1.0.7 on ms win 2k > The following file is successfully imported by a PythonImport > directive. > > #PythonImport test > > from mod_python import apache > > apache.log_error('q8 q8 q8 q8') > > I know this because it writes to the error log. > > The directive that loads it is: > > PythonImport pyimp localhost.localdomain > > I know that my publisher programs are being run in this interpreter > because: > > def t(req): > return str(req.interpreter) #probably is a string anyway > > returns localhost.localdomain into my browser. > > If I now change my publisher program to say: > > def t(req): > return str(globals()) #probably is a string anyway > > then why can't I see any reference to pyimp in the resulting output? > > > Paul Hide > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|