[Answered ]-Not need CSRF feature in django 1.2.3

2👍

You can remove the corresponding middleware from the MIDDLEWARE_CLASSES constant in your settings file.

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    #'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
)

Leave a comment