easiest way for inline python with apache (mod_python)?

155 views Asked by At

if have an existing webpage (simple HTML) where i want to include some python. The website isn´t written by me, so i can not write the whole page in python. The web-server is an Apache.

At the moment i solved it with an inlineframe from the same directory and server which is a bit dirty (but it does what i want) :-/

<Directory /var/www/folder>
  AddHandler mod_python .py
  PythonHandler scriptname
  PythonDebug Off
</Directory>

some php-like inline python would help me.

I´am testing some psp (Python Server Pages) but is that the easiest way to do that?

I don´t want to use JavaScript to load the "frame" with python-code

0

There are 0 answers