[mod_python] My template script isn't working

Anton selecter at gmail.com
Sun Aug 28 18:49:54 EDT 2005


I am migrating from php to python. Simple script are attached with templates.

The problem is script isn't being processed by apache (It's not
AddHandler stuff). And I think something is segfaulting.

What is wrong with it?

Script works if I, for example, change QUOTE to QUOTE2 and error occurs:
NameError: name 'QUOTE' is not defined
-------------- next part --------------
A non-text attachment was scrubbed...
Name: index.py
Type: text/x-python
Size: 202 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050829/98788d89/index.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: style.css
Type: text/css
Size: 4503 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050829/98788d89/style.css
-------------- next part --------------
A non-text attachment was scrubbed...
Name: header.tmpl
Type: application/octet-stream
Size: 2441 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050829/98788d89/header.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: index.tmpl
Type: application/octet-stream
Size: 3059 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050829/98788d89/index.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: right.tmpl
Type: application/octet-stream
Size: 1299 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050829/98788d89/right.obj


More information about the Mod_python mailing list