diff --git a/dpaste/settings/tests.py b/dpaste/settings/tests.py index cc2e3c7..6386cf7 100644 --- a/dpaste/settings/tests.py +++ b/dpaste/settings/tests.py @@ -1,7 +1,7 @@ """ Settings for the test suite """ - +import django from .base import * SECRET_KEY = 'test-key' @@ -9,3 +9,8 @@ SECRET_KEY = 'test-key' DATABASES = { 'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:'} } + +# Drop CSP middleware for Django 3.0 until it was fixed upstream +# https://github.com/mozilla/django-csp/issues/129 +if django.get_version().startswith('3.'): + MIDDLEWARE.remove('csp.middleware.CSPMiddleware') diff --git a/dpaste/templates/dpaste/base.html b/dpaste/templates/dpaste/base.html index 0a7992f..a9deb8c 100644 --- a/dpaste/templates/dpaste/base.html +++ b/dpaste/templates/dpaste/base.html @@ -1,5 +1,4 @@ {% load i18n %} -{% load staticfiles %} {% load staticinline %}