fixing the middleware order

This commit is contained in:
Burhan Khalid 2015-11-16 19:04:07 +03:00
parent 727281e99a
commit a68f256e5b

View File

@ -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