mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 11:56:36 +11:00
Django 3.0 compatibility.
This commit is contained in:
parent
7759df5158
commit
63a8500cc8
2 changed files with 6 additions and 2 deletions
|
@ -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')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% load i18n %}
|
||||
{% load staticfiles %}
|
||||
{% load staticinline %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
|
Loading…
Reference in a new issue