From 77b79b32b80955192b344d99bd4ab64056905a92 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Thu, 30 Aug 2018 18:49:12 -0400 Subject: [PATCH] Get intercooler ajax requests working with csrf protection --- brutaldon/settings.py | 2 +- brutaldon/templates/base.html | 26 ++------------------------ 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/brutaldon/settings.py b/brutaldon/settings.py index 561929c..93bf1c3 100644 --- a/brutaldon/settings.py +++ b/brutaldon/settings.py @@ -47,7 +47,7 @@ MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', - #'django.middleware.csrf.CsrfViewMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', diff --git a/brutaldon/templates/base.html b/brutaldon/templates/base.html index b012e43..1d5bc1d 100644 --- a/brutaldon/templates/base.html +++ b/brutaldon/templates/base.html @@ -38,7 +38,8 @@ {% endif %} - + {% block navbar %}