[mod_python] Re: little problem with my handler

Julien Cigar jcigar at ulb.ac.be
Tue Mar 28 08:19:06 EST 2006

Thanks for answer.
I don't think that it's the cause of the problem ..

Here is my Apache config is :

Alias /ias /home/jcigar/public_html/invasive_species/public/dispatch.py/
<Directory /home/jcigar/public_html/invasive_species/public>
    SetHandler mod_python
    PythonHandler dispatch
    PythonDebug on
    PythonInterpPerDirectory on

    <Files "\.(gif|jpe?g|png|css|html?)$">
        SetHandler None


... so mod_python should not serve those files.
I've added a .htaccess with a "SetHandler None" in the directory 
containing the css, pictures, ... but it doesn't resolve the problem ...

Daniel Nogradi wrote:
>> <link rel="stylesheet" type="text/css" href="styles/screen.css"></link>
>> ...
>> [error] PythonHandler handler: AttributeError: 'module' object has no
>> attribute 'styles', referer: http://canis/ias/default/
> Perhaps you have the same problem as this:
> http://modpython.org/pipermail/mod_python/2006-March/020671.html
> It looks like mod_python wants to serve your stylesheets possibly
> because you have used the SetHandler directive for the directory
> containing those css files. Try the suggestions of Graham on the post
> linked above to avoid mod_python interfering with files that are not
> python files (stylesheets, images, etc).
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

Julien Cigar
Belgian Biodiversity Platform
Université Libre de Bruxelles
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Work: jcigar at ulb.ac.be
Personal: mage at mordor.ath.cx

More information about the Mod_python mailing list