views:

181

answers:

1
+1  Q: 

Django-cms problem

I'm setting up a website using django-cms and when I open up the add page view in the admin, I get this error:

TemplateSyntaxError at /admin/cms/page/add/

Invalid block tag: 'csrf_token'

What could be the problem? I'm using Django 1.1. BTW.

A: 

Are you using the django.middleware.csrf.CsrfMiddleware middleware?

lazerscience
Yes I am....and it should be django.contrib.csrf.middleware.CsrfMiddleware for 1.1
Stephen
It seems to be fixed now : http://code.google.com/p/django-page-cms/issues/detail?id=183#c5
lazerscience
Still the same...anyway, downgrading to 2.0.2 seems to work....likewise for upgrading Django to 1.2...thnx lazerscience
Stephen
Try removing the middleware!
lazerscience