Django 3.0 compatibility.

This commit is contained in:
Martin Mahner 2019-12-05 09:41:05 +01:00
parent 7759df5158
commit 63a8500cc8
2 changed files with 6 additions and 2 deletions

View file

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

View file

@ -1,5 +1,4 @@
{% load i18n %}
{% load staticfiles %}
{% load staticinline %}
<!DOCTYPE html>