diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db7d237..7349ba0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,6 +20,8 @@ test_and_coverage: - echo 'from ivatar.settings import TEMPLATES' > config_local.py - echo 'TEMPLATES[0]["OPTIONS"]["debug"] = True' >> config_local.py - echo "DEBUG = True" >> config_local.py + - echo "from config import CACHES" >> config_local.py + - echo "CACHES['default'] = CACHES['filesystem']" >> config_local.py - python manage.py collectstatic --noinput - coverage run --source . manage.py test -v3 - coverage report --fail-under=70 diff --git a/config.py b/config.py index f5f2fd5..78759fb 100644 --- a/config.py +++ b/config.py @@ -60,7 +60,7 @@ OPENID_CREATE_USERS = True OPENID_UPDATE_DETAILS_FROM_SREG = True SITE_NAME = os.environ.get("SITE_NAME", "libravatar") -IVATAR_VERSION = "1.6.2" +IVATAR_VERSION = "1.7.0" SCHEMAROOT = "https://www.libravatar.org/schemas/export/0.2" @@ -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;