Auf die Idee Cheetah zu verwenden bin ich selbst schon gekommen.BlackJack hat geschrieben: Die HTML Antwort kann man als ``print`` Anweisungen in den Python-Quelltext schreiben, aber sauberer ist es wohl eines der vielen Vorlagensysteme, wie `kid` oder `Cheetah` zu benutzen. Dann kann man die Webseiten, also die "GUI-Elemente" unabhängig vom Programm bearbeiten.
Leider happerts da schon bei der Installation.
Mein Betriebssytem ist WIN XP.
Habe alles so gemacht wie hier beschrieben.
http://www.devshed.com/c/a/Python/Templ ... h-Cheetah/
Windows users will likely want to take a few extra steps when installing Cheetah. The first is to rename the file cheetah since it does not come with any extension to identify it as a Python file. It's located in the Scripts directory of your Python installation. Simply rename it cheetah.py, and if you are dying to lose the extension, create a file in the same directory called cheetah.bat:
cheetah.py %*
Next, it is recommended that you obtain a file named _namemapper.pyd from SourceForge. It speeds up Cheetah on Windows:
http://prdownloads.sourceforge.net/chee ... d?download
Place the file in the Lib/site-packages/Cheetah directory of your Python installation.
Hab ich alles gemacht mein Apache mekert aber:
C:\\Python24\\lib\\site-packages\\Cheetah\\Compiler.py:1507: UserWarning: \r, referer: http://harrerhof/
[Mon Aug 14 22:02:46 2006] [error] [client 192.168.2.2] You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.\r, referer: http://harrerhof/
[Mon Aug 14 22:02:46 2006] [error] [client 192.168.2.2] warnings.warn(\r, referer: http://harrerhof/
Was hab ich falsch gemacht?
Apache will ein kompiliertes pyc File so wie ichs verstanden habe.
In der Beschreibung ist von einem pyd File die Rede.
Das hab ich jetzt auch gefunden
http://de.wikipedia.org/wiki/Liste_der_Dateiendungen/P
Grüsse
Mutsch