django.template.base.TemplateSyntaxError: 'block' tag takes only one argument

1358603503000 » Tagged as: cactus , markdown , Python

Update Feb 16: If you came looking for a solution to a template error in the title;  see this link for the solution. This post is about static blog generators.

Still blogging with wordpress despite my repeated assurances that I am moving away from it. This time my excuse is the error message in the title. In the previous post, we talked about Cactus, Volt and Cactus blog. That discussion was left off with a character encoding error.

UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe2 in position 772: ordinal not in range(128). — Note: Markdown only accepts unicode input!

This is becuase "Python-Markdown expects Unicode as input (although a simple ASCII string may work) and returns output as Unicode." (python markdown docs). Less said about unicode support in PHP 5 and wordpress the better. So let's talk about adapting our input. That can be managed by a slight mod to the markdown.py file. Here is the diff:

comments powered by Disqus