Django-cms problem
I'm setting up a website using django-cms and when I open up the add page view in the a开发者_StackOverflowdmin, 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.
Add django.middleware.csrf.CsrfViewMiddleware
to MIDDLEWARE in settings.py.
MIDDLEWARE = [
'django.middleware.csrf.CsrfViewMiddleware'
]
精彩评论