[mod_python] Re: mod_python and css

StianSøiland stian at soiland.no
Fri Jan 2 10:42:49 EST 2004


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]



More information about the Mod_python mailing list