Add CSRFViewMiddleware to settings.py

CSRFViewMiddleware now a mandatory parameter to settings.py
regarding to change:
- added special csrf middleware that will add csrf cookie to all
responses
2f726cdda9

Change-Id: Id0c414dbac24056aad2a619b09327855f52ec3a9
This commit is contained in:
Marton Kiss 2015-07-02 23:42:27 +02:00
parent 47593a7970
commit 0e88533d83
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ MIDDLEWARE_CLASSES = (
#'debug_toolbar.middleware.DebugToolbarMiddleware',
'askbot.middleware.view_log.ViewLogMiddleware',
'askbot.middleware.spaceless.SpacelessMiddleware',
'askbot.middleware.csrf.CsrfViewMiddleware',
)