[mod_python] Re: Cannot run test script: (Re)importing module 'mptest'

Damon Lynch damon at asianreflection.com
Mon Aug 11 19:03:21 EST 2003


On Mon, 2003-08-11 at 11:07, Russell Yanofsky wrote:
> Damon Lynch wrote:
> > Hi,
> > 
> > There is an example test script in:
> > 
> > http://www.modpython.org/live/current/doc-html/inst-testing.html
> > 
> > I cannot get the example test script to run
> > ...
> > the URL I'm using is:
> > http://myserver/test/mptest
> > 
> 
> Should that be http://myserver/test/mptest.py ?
> 

Hi Russ,

That appears to make no difference.  When I inspect the headers I'm
getting the output as application/x-python instead of text/html:

HTTP/1.1 200 OKCRLF
Date: Mon, 11 Aug 2003 06:56:49 GMTCRLF
Server: Apache-AdvancedExtranetServer/2.0.47 (Mandrake Linux/1.1mdk) mod_python/3.0.3 Python/2.2.2 mod_ssl/2.0.47 OpenSSL/0.9.7aCRLF
Content-Location: mptest.pyCRLF
Vary: negotiate,acceptCRLF
TCN: choiceCRLF
Set-Cookie: Apache=207.200.81.211.1060585009151968; path=/; max-age=1209600CRLF
Connection: closeCRLF
Content-Type: application/x-pythonCRLF
Expires: Mon, 11 Aug 2003 06:56:49 GMTCRLF
CRLF
Hello World!


I'm bamboozled at this point!

Damon



More information about the Mod_python mailing list