[mod_python] Re: mod_python and css

Gregory (Grisha) Trubetskoy grisha at modpython.org
Fri Jan 2 16:43:46 EST 2004


There also:

   d) SetHandler None
      To reverse any previous SetHandler directives to default Apache
      behaviour. Handy for those images/ or styles/ directories.

Grisha

On Fri, 2 Jan 2004, Stian [iso-8859-1] S?iland wrote:

> On 2003-12-31 10:57:31, Red Conecta wrote:
>
> > I'm trying to use css with the publisherhandler; here is the code:
>
> You've probably used SetHandler instead of AddHandler. SetHandler eats
> ALL requests for the directory and passes them on to mod_python.
> Effectually static files like your css-file is therefore unavailable.
>
> Solutions:
>
>    a) Create one or more static-directories with SetHandler none
>       (these could be called "css", "images", etc.)
>
>    b) Place static files somewhere outside the directory structure
>       handled by SetHandler python-program
>
>    c) Use AddHandler python-program .py instead
>       (requires a .py-ending for all mod-python requests)
>
> --
> Stian S?iland               Work toward win-win situation. Win-lose
> Trondheim, Norway           is where you win and the other lose.
> http://www.soiland.no/      Lose-lose and lose-win are left as an
>                             exercise to the reader.  [Limoncelli/Hogan]
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list