diff --git a/.well-known/security.txt b/.well-known/security.txt new file mode 100644 index 000000000..9d0b5cd07 --- /dev/null +++ b/.well-known/security.txt @@ -0,0 +1,10 @@ +Policy: https://www.djangoproject.com/security/ +Contact: https://www.djangoproject.com/security/ +Expires: 2026-12-31T00:00:00.000Z +Encryption: https://keys.openpgp.org/vks/v1/by-fingerprint/AF3516D27D0621171E0CCE25FCB84B8D1D17F80B +Preferred-Languages: en + +# Hello security researcher! +# We appreciate your help in keeping Django secure. +# Please report security issues that concern the Django website (djangoproject.com) to ops@djangoproject.com +# This helps us make sure your report is seen by the right people. diff --git a/djangoproject/tests.py b/djangoproject/tests.py index a95f0b939..a8b9a296b 100644 --- a/djangoproject/tests.py +++ b/djangoproject/tests.py @@ -1,6 +1,8 @@ +from datetime import datetime, timedelta from http import HTTPStatus from io import StringIO +from django.conf import settings from django.core.management import call_command from django.test import TestCase from django.urls import NoReverseMatch, get_resolver @@ -164,3 +166,40 @@ def test_single_h1_per_page(self): response = self.client.get(url) self.assertEqual(response.status_code, 200) self.assertContains(response, "