From f4a75e0d1070e12b2d7de01745da77244e776b61 Mon Sep 17 00:00:00 2001 From: Burhan Khalid Date: Mon, 16 Nov 2015 19:04:07 +0300 Subject: [PATCH] fixing the middleware order --- {{cookiecutter.repo_name}}/config/settings/production.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.repo_name}}/config/settings/production.py b/{{cookiecutter.repo_name}}/config/settings/production.py index c065f6fca..09d11ef37 100644 --- a/{{cookiecutter.repo_name}}/config/settings/production.py +++ b/{{cookiecutter.repo_name}}/config/settings/production.py @@ -65,9 +65,9 @@ OPBEAT = { 'APP_ID': env('DJANGO_OPBEAT_APP_ID'), 'SECRET_TOKEN': env('DJANGO_OPBEAT_SECRET_TOKEN') } -MIDDLEWARE_CLASSES += ( +MIDDLEWARE_CLASSES = ( 'opbeat.contrib.django.middleware.OpbeatAPMMiddleware', -) +) + MIDDLEWARE_CLASSES {%- endif %} # set this to 60 seconds and then to 518400 when you can prove it works SECURE_HSTS_SECONDS = 60