开发者

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'
]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜