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

1360977871000 » Tagged as: cactus , Django , templates

Have you run into an error of this nature? It's because your django template blocks are incomplete. You probably have something like this:

{% block %}

where as what you really ought to have is something like this (choose a suitable name):

{% block content %}

Yes it's a trivial solution. This error  was encountered when trying to import from Wordpress into Cactus. I had reached that stage only after overcoming another one related to encoding, so I just gave up on it. However I felt I the need to write this blog entry because the previous post ranked pretty high in search results, and it seems rude to turn people away without a solution. .  
comments powered by Disqus