Using Cheetah Templating system with windows and python 2.6.1 (problem with namemapper)

So, I'm trying to use the Cheetah templating engine in conjunction with a Django web map, and this actually works fine. I did some simple tests with this, and I was able to display pages and more.

However, problems arise when something happens other than using very simple variables / attributes / methods in Cheetah templates. He is angry and says: You do not have the installed version of C NameMapper! I disabled the Cheetah useStackFrames parameter as it is very slow with the NameMapper version in Python. You should get a copy of Cheetah with a compiled version of C NameMapper. msgstr "\ nYou don’t have a C version of NameMapper!"

And then he will not be able to find any attribute or method that I tried to call inside the Cheetah template.

I tried to download the Namemapper version in C and install it, but I was not sure how to “install” the .pyd file (when I searched for the “.pyd” files on the Internet, it said that they are just dynamic python that can be used with the operator import). In addition, the Cheetah site only has C Namemapper versions for python 2.4 and 2.5, while I am using python 2.6.1, so this is probably also a problem.

Does anyone have a solution for this? Thanks.

+5
source share
1 answer

PYD Python 2.6, Windows, , , PYD Windows.

: http://feisley.com/python/cheetah/ ( pyd /pyd )

, !

+6

All Articles