开发者

Django-cms problem

开发者 https://www.devze.com 2022-12-30 11:44 出处:网络
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:

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

精彩评论

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