mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +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
|
Settings for the test suite
|
||||||
"""
|
"""
|
||||||
|
import django
|
||||||
from .base import *
|
from .base import *
|
||||||
|
|
||||||
SECRET_KEY = 'test-key'
|
SECRET_KEY = 'test-key'
|
||||||
|
@ -9,3 +9,8 @@ SECRET_KEY = 'test-key'
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:'}
|
'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 i18n %}
|
||||||
{% load staticfiles %}
|
|
||||||
{% load staticinline %}
|
{% load staticinline %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|
Loading…
Reference in a new issue