From 9565ccc54e5fbc8fddac262c71b90a4dd9f3be38 Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Tue, 22 Nov 2022 19:38:08 +0100 Subject: [PATCH 1/5] Changes required for Django > 4 --- config.py | 6 +- .../templates/assign_photo_email.html | 4 +- .../templates/assign_photo_openid.html | 4 +- ivatar/ivataraccount/test_views.py | 112 ++++++++++++++---- ivatar/ivataraccount/urls.py | 47 ++++---- ivatar/test_views.py | 13 +- ivatar/tools/urls.py | 8 +- ivatar/urls.py | 50 ++++---- requirements.txt | 2 +- 9 files changed, 163 insertions(+), 83 deletions(-) diff --git a/config.py b/config.py index f5f2fd5..d3c80b1 100644 --- a/config.py +++ b/config.py @@ -191,7 +191,7 @@ MESSAGE_TAGS = { CACHES = { "default": { - "BACKEND": "django.core.cache.backends.memcached.MemcachedCache", + "BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache", "LOCATION": [ "127.0.0.1:11211", ], @@ -238,9 +238,7 @@ TRUSTED_DEFAULT_URLS = [ "path_prefix": "/static/img/", }, { - "schemes": [ - "http", - ], + "schemes": ["http"], "host_equals": "www.planet-libre.org", "path_prefix": "/themes/planetlibre/images/", }, diff --git a/ivatar/ivataraccount/templates/assign_photo_email.html b/ivatar/ivataraccount/templates/assign_photo_email.html index 29968fe..920dcf9 100644 --- a/ivatar/ivataraccount/templates/assign_photo_email.html +++ b/ivatar/ivataraccount/templates/assign_photo_email.html @@ -34,7 +34,7 @@ outline: inherit;