From patchwork Sun Oct 18 01:50:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 101166 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B6ABCCF2C4 for ; Sun, 18 Oct 2026 01:53:56 +0000 (UTC) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7877.1792288429962023832 for ; Sat, 17 Oct 2026 18:53:50 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=VhMfJtBt; spf=pass (domain: gmail.com, ip: 209.85.214.179, mailfrom: ticotimo@gmail.com) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2e9995ce866so7739635ad.0 for ; Sat, 17 Oct 2026 18:53:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792288429; x=1792893229; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=8Cry8Rz5c8206kZiXrruKP4iuJGuhCHyOpGfTosi1sc=; b=VhMfJtBtlBSBQD0TheknK2JY58XWjxqaPtnK1sYwabiOL9d+vlPblHRla6R2r8mc4w yfufaMMMIQzYmthwCBbsLyRBhl6HfHE7gxUN6haoLHDyGEMCszta0jR8tXVkEP/SHXOQ IcyxpfzEImAqmkdM0K2ZHrN6E7tAvDAdAuHV9DvX2RLWSEHwALQM4XEMx/vnfcvsvS1x 56kJySLbjJpCJE5c3K3e9G22ac0RYFLyY38oB3+Rz+W/nDoFDpGUTe3PeBtZxeHPwMO5 ZhiPMiIg0dokEzbViA/Y49uJz9ZeuqoGlTNz5d3nTRvM8Fuh3BW8hO1sQiqBuLnrQgmt fCbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792288429; x=1792893229; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=8Cry8Rz5c8206kZiXrruKP4iuJGuhCHyOpGfTosi1sc=; b=hrJgWmHYfQNrRIsTAy9fOUZHMxQCLUssvj17xOiO4ib6YcJWWrufNeIbSmrPVO7tHC AjdG63p2j4n8r9PQ2Hy1NUma4Sai9289r6NWUDciCQg+nIZzkBoMkYdHM06sr+wvG0fE BoYEK2sam554JqQyGePuiR0kone7eMLxUYTYtuJR2KK7vO70SjJmZalAB9785NapvXOS rJhtF81d4fGujbXAx4LVkXjy0Fp3KRGAOE/vwsP7CMM2UXzTSab6GG+SMtdsEnCYwuTa V4zl/Jz2rhVGEAjIheZejUaMMOp4t/rPpRpjffgFc3KFTiRyE5IUD3O9lJJf2p6NnTis Gtfg== X-Gm-Message-State: AFq9FYLy15gMTW2AVLIzVtSvM9I39Whap6VePlwj+mV+fkCrBQHFyPAp sorHFN1ksv8VDugs9LKd/dB4JSFwDgasMXeVo0l3RyW/vzxEjlxyqGWTNi9Tqfz0 X-Gm-Gg: AYBFou05q9gZ+CelXCI9DuZ1AQ95YgumBdF7sXNpBQ0XbEsnH6rPUjixakCSs0oir18 2bLJRKxv/odKhUdYglIlbutv9HXdx5bKHROpSOXtllCYqh361INvYvHvTzbXDDVd0VPwrBqi1KZ RPoiZqUyS8u+/5/7OCv/SrJTkg+nDqQaoRyKXKRUSs5hRh1atxtSfyekWl71kFd5JnTz5u9n4v4 K64jgy9f0zwdF6XrJCBDmV9TORb03LVXJxh5n6u2ZvuOEHh8vLC3Xxt9gjzC/2DMqWjZnAdsWQJ A4bzRxs2b8hPAnSHEKEYU1GP86itPwn2Tr59mevkmKQTxBCawCJzIFT6bol+fJOztIeSx2EwAMD fLlVjXnHVEt3s7+xVMk4z8Hzk3Xs+9zoJCAPjlLFmkQcGchOIjSg6mGUFjLzNHskWpLTtM+8I5F PXVhY8AEApXss9EPXyOsLuE2aAoOccqWAbX3X0OIPQLCU/iNSgm1qlvv7r1UFVBa20e0sPz90N+ uB08OYy6lpIibyl2VmwbjaekybEMsE= X-Received: by 2002:a17:902:d2cb:b0:2e9:5b4e:b8a1 with SMTP id d9443c01a7336-2e9a6c22dcamr35726455ad.55.1792288429206; Sat, 17 Oct 2026 18:53:49 -0700 (PDT) Received: from localhost.localdomain ([69.9.132.159]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e97e5d51b5sm24626155ad.8.2026.10.17.18.53.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 17 Oct 2026 18:53:48 -0700 (PDT) From: Tim Orling X-Google-Original-From: Tim Orling To: yocto-patches@lists.yoctoproject.org Cc: Tim Orling Subject: [error-report-web][PATCH 1/3] Apply common_context through TEMPLATES. Date: Sat, 17 Oct 2026 18:50:36 -0700 Message-ID: <20261018015326.73748-3-tim.orling@konsulko.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261018015326.73748-1-tim.orling@konsulko.com> References: <20261018015326.73748-1-tim.orling@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 18 Oct 2026 01:53:56 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5055 TEMPLATE_CONTEXT_PROCESSORS has been ignored since Django 1.10, so common_context never ran and the SPECIAL_SUBMITTER tab never showed. AI-Generated: Claude Opus 5.5 Signed-off-by: Tim Orling --- Post/test.py | 11 +++++++++++ project/settings.py | 7 +------ project/settings.py.docker | 7 +------ 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Post/test.py b/Post/test.py index 2a98bfc..d33cf97 100755 --- a/Post/test.py +++ b/Post/test.py @@ -400,6 +400,17 @@ class PaginationTest(TestCase): self.assertEqual(response.status_code, 200) +@override_settings(ALLOWED_HOSTS=["testhost"]) +class SpecialSubmitterTest(TestCase): + def test_tab_shown_only_when_configured(self): + client = Client(HTTP_HOST="testhost") + self.assertNotContains(client.get("/Errors/Latest/"), "Latest Autobuilder errors") + with self.settings(SPECIAL_SUBMITTER={"name": "yocto-autobuilder", + "title": "Autobuilder", + "link": "Autobuilder"}): + self.assertContains(client.get("/Errors/Latest/"), "Latest Autobuilder errors") + + @patch("Post.management.commands.culldb.time.sleep") class CullDbTest(TestCase): def setUp(self): diff --git a/project/settings.py b/project/settings.py index bc63c49..529086b 100644 --- a/project/settings.py +++ b/project/settings.py @@ -159,6 +159,7 @@ TEMPLATES = [ 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', + 'Post.views.common_context', ], }, }, @@ -208,12 +209,6 @@ LOGGING = { } } -TEMPLATE_CONTEXT_PROCESSORS = ( - 'django.contrib.auth.context_processors.auth', - 'django.core.context_processors.request', - 'Post.views.common_context', -) - BUGZILLA_URL = 'https://bugzilla.yoctoproject.org' ACCOUNT_ACTIVATION_DAYS = 2 diff --git a/project/settings.py.docker b/project/settings.py.docker index 680b485..b98006e 100644 --- a/project/settings.py.docker +++ b/project/settings.py.docker @@ -153,6 +153,7 @@ TEMPLATES = [ 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', + 'Post.views.common_context', ], }, }, @@ -202,12 +203,6 @@ LOGGING = { } } -TEMPLATE_CONTEXT_PROCESSORS = ( - 'django.contrib.auth.context_processors.auth', - 'django.core.context_processors.request', - 'Post.views.common_context', -) - BUGZILLA_URL = 'https://bugzilla.yoctoproject.org' ACCOUNT_ACTIVATION_DAYS = 2 From patchwork Sun Oct 18 01:50:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 101167 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A34DCCF2C4 for ; Sun, 18 Oct 2026 01:54:16 +0000 (UTC) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7882.1792288448348807256 for ; Sat, 17 Oct 2026 18:54:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20251104 header.b=T0j/NAhx; spf=pass (domain: gmail.com, ip: 209.85.214.173, mailfrom: ticotimo@gmail.com) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-2e86dce4510so4191805ad.3 for ; Sat, 17 Oct 2026 18:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792288448; x=1792893248; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=AbcP5fgaYhjgPtHy4NUs4GinnR41Rj7h3j/o0rN/RPI=; b=T0j/NAhxXLRU6A8UXoqSWMnVzTWVrVKCuJf3qxQ7LYt2O7Ns7vULgybT4xdO/JJht5 yKtnzzy2Ank8GVL3tU8yQj2v4W8Wmk7Igd1oI4tPQcCOej+hYNqy/X+kDKv0SMaDnXVR J5JHzcS3bmKziTYpWX6nxSV56XlY2oYd3Zf+gH+rjAnfEMxcroPuWpB5OQtpaRt+IyxD DEs7xajaAc8/gat3EWGToJPa90RZGt1gKGoigLjn5m//CbipQAghyg8LumB3krI5elVo S3/JevDAxCMPpBD692y60263suWSSgFrmjeA1SalRfyoqB0axX+TSBCjEbbiPIEi2Ffz QNEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792288448; x=1792893248; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=AbcP5fgaYhjgPtHy4NUs4GinnR41Rj7h3j/o0rN/RPI=; b=y12vYLnfUzD3L+x1aTcQmqbZI6uZs09JGuU0aBorD4vIBgJYpNz3TWZ0u0oLCzeJXx Mm9i4VGuvu29XKW8FLkkkML5zuxl+IR6tts9n8d8WHG2JpB3y9lmUJRF2C9iYIoTZwwD meQQQYrfnEIAuYf+RFf+p1Uwp42WVz8ON6yzI6eUqr0Y0+73m3ODlbO8wI1+EaVFvGVo IGgybemBiGFtxRaxqkNptl6t8uDEGxzZrVC9zL1wEyN7/QhBJRlsuCzN+uFZlWYVpe1P XtSu9h15Nv72G3t7ZZE59+/I+dv5SnxeovqeNzZ8fFNaGfJeOAUFFCdTw/uYhHBL8DqY SmQA== X-Gm-Message-State: AFq9FYKv1o2IWd6cnM7KUEoEBBPWe1+Lz9MTtFqwxKMXenaxp3FYWGyZ MwWZR5o2HbijAtsV66bCKTd0SUTrwnWm5I7j87eY6Avih5aJ9VqxwRXozyCPfLiw X-Gm-Gg: AYBFou2yaXK+E49TqTWYjnEd4+zZXfPTTcduu0ne65dodhtzsf93bRXhgZ46fcgu4J7 DiBIbGFbFJ2/pAGeSYjXfQr50Jwux4DM15V7h84E7878R/BvLq5r8tCoSSUiPqdPSphxsvH0F0y w7no9Frjx0ic3VLVXfop0DKX6jBHUG9S1/7+/1u+u8lSUWrDmjzeJKFl5VnG8c0D8FmDXilWipC IEGBh4H50ljE1yNV27SJ42gwQt2t1diHtfoKiy771lnaXKt+/iHiuUKV7p7p87Le7JyDBVVc1lR S4/dDMTNTQTZVRt/UZFF9m+Jxyd/4AWn7ezSCnv0Fdhu4pjUZoVFEOHTrD+YGjzA3I0oZGC0zSg jGOaWbYUUhJpkJqzfQw5m9D88gZYTqqYvBqV85cGenbuHnXrsW/U+Na071TXxT6K0BgOWMD/+qQ wbVoprl9jotPHZfMXK/zofa2jt5NP6LXAbd7A5uGJ1bdU+e5yxZjvIkEewHsp/r3U8Gs6wlXUhP KYHGH/uNDfPH6WDrVB9qcWWNS27YCw= X-Received: by 2002:a17:902:f60d:b0:2dd:ad73:c983 with SMTP id d9443c01a7336-2e9a69e8bb4mr31924795ad.27.1792288447527; Sat, 17 Oct 2026 18:54:07 -0700 (PDT) Received: from localhost.localdomain ([69.9.132.159]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e97e5d51b5sm24626155ad.8.2026.10.17.18.54.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 17 Oct 2026 18:54:06 -0700 (PDT) From: Tim Orling X-Google-Original-From: Tim Orling To: yocto-patches@lists.yoctoproject.org Cc: Tim Orling Subject: [error-report-web][PATCH 2/3] Remove the broken account pages. Date: Sat, 17 Oct 2026 18:50:38 -0700 Message-ID: <20261018015326.73748-5-tim.orling@konsulko.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261018015326.73748-1-tim.orling@konsulko.com> References: <20261018015326.73748-1-tim.orling@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 18 Oct 2026 01:54:16 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/5056 Registration and activation returned 500, login 404, and the login links were commented out. Nothing needs a login; the admin has its own. Remove the URLs, templates, settings and django-registration. AI-Generated: Claude Opus 5.5 Signed-off-by: Tim Orling --- Post/test.py | 10 +++++++++ project/settings.py | 3 --- project/settings.py.docker | 3 --- project/urls.py | 3 +-- requirements.txt | 1 - templates/base.html | 21 ------------------- templates/registration/activate.html | 18 ---------------- .../registration/activation_complete.html | 14 ------------- templates/registration/activation_email.txt | 14 ------------- .../registration/activation_email_subject.txt | 1 - templates/registration/login.html | 18 ---------------- templates/registration/logout.html | 6 ------ .../registration/password_change_done.html | 6 ------ .../registration/password_change_form.html | 11 ---------- .../registration/password_reset_complete.html | 10 --------- .../registration/password_reset_confirm.html | 21 ------------------- .../registration/password_reset_done.html | 6 ------ .../registration/password_reset_email.html | 5 ----- .../registration/password_reset_form.html | 14 ------------- templates/registration/registration_base.html | 12 ----------- .../registration/registration_complete.html | 6 ------ templates/registration/registration_form.html | 15 ------------- 22 files changed, 11 insertions(+), 207 deletions(-) delete mode 100644 templates/registration/activate.html delete mode 100644 templates/registration/activation_complete.html delete mode 100644 templates/registration/activation_email.txt delete mode 100644 templates/registration/activation_email_subject.txt delete mode 100644 templates/registration/login.html delete mode 100644 templates/registration/logout.html delete mode 100644 templates/registration/password_change_done.html delete mode 100644 templates/registration/password_change_form.html delete mode 100644 templates/registration/password_reset_complete.html delete mode 100644 templates/registration/password_reset_confirm.html delete mode 100644 templates/registration/password_reset_done.html delete mode 100644 templates/registration/password_reset_email.html delete mode 100644 templates/registration/password_reset_form.html delete mode 100644 templates/registration/registration_base.html delete mode 100644 templates/registration/registration_complete.html delete mode 100644 templates/registration/registration_form.html diff --git a/Post/test.py b/Post/test.py index d33cf97..77adc32 100755 --- a/Post/test.py +++ b/Post/test.py @@ -411,6 +411,16 @@ class SpecialSubmitterTest(TestCase): self.assertContains(client.get("/Errors/Latest/"), "Latest Autobuilder errors") +@override_settings(ALLOWED_HOSTS=["testhost"]) +class AccountPagesRemovedTest(TestCase): + def test_accounts_urls_are_gone(self): + client = Client(HTTP_HOST="testhost") + for url in ("/accounts/register/", "/accounts/login/"): + self.assertEqual(client.get(url).status_code, 404) + # The admin keeps its own login page. + self.assertEqual(client.get("/admin/login/").status_code, 200) + + @patch("Post.management.commands.culldb.time.sleep") class CullDbTest(TestCase): def setUp(self): diff --git a/project/settings.py b/project/settings.py index 529086b..28e526b 100644 --- a/project/settings.py +++ b/project/settings.py @@ -177,7 +177,6 @@ INSTALLED_APPS = ( 'django.contrib.admin', # Uncomment the next line to enable admin documentation: 'django.contrib.admindocs', - # 'registration', ) # A sample logging configuration. The only tangible logging @@ -211,10 +210,8 @@ LOGGING = { BUGZILLA_URL = 'https://bugzilla.yoctoproject.org' -ACCOUNT_ACTIVATION_DAYS = 2 EMAIL_HOST = 'localhost' DEFAULT_FROM_EMAIL = 'noreply@example.com' -LOGIN_REDIRECT_URL = '/Errors' TEST_RUNNER = 'django.test.runner.DiscoverRunner' DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' diff --git a/project/settings.py.docker b/project/settings.py.docker index b98006e..bce1347 100644 --- a/project/settings.py.docker +++ b/project/settings.py.docker @@ -171,7 +171,6 @@ INSTALLED_APPS = ( 'django.contrib.admin', # Uncomment the next line to enable admin documentation: 'django.contrib.admindocs', - # 'registration', ) # A sample logging configuration. The only tangible logging @@ -205,10 +204,8 @@ LOGGING = { BUGZILLA_URL = 'https://bugzilla.yoctoproject.org' -ACCOUNT_ACTIVATION_DAYS = 2 EMAIL_HOST = 'localhost' DEFAULT_FROM_EMAIL = 'noreply@example.com' -LOGIN_REDIRECT_URL = '/Errors' TEST_RUNNER = 'django.test.runner.DiscoverRunner' DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' diff --git a/project/urls.py b/project/urls.py index 16f5b6d..79b4d34 100644 --- a/project/urls.py +++ b/project/urls.py @@ -6,7 +6,7 @@ # # Licensed under the MIT license, see COPYING.MIT for details -from django.urls import include, re_path +from django.urls import re_path from django.contrib import admin from django.views.generic import TemplateView, RedirectView from django.conf import settings @@ -26,7 +26,6 @@ urlpatterns = [ # Uncomment the next line to enable the admin: re_path(r'^admin/', admin.site.urls), - re_path(r'^accounts/', include('django_registration.backends.activation.urls')), re_path(r'^Errors/Latest/$', post_views.search, { 'mode' : results_mode.LATEST }, name= "latest_errors"), re_path(r'^Errors/Latest/feed$', LatestEntriesFeed(), name="errors_feed"), re_path(r'^Errors/Latest/'+special_submitter+'/$', post_views.search, { 'mode' : results_mode.SPECIAL_SUBMITTER}, name= "latest_autobuilder_errors"), diff --git a/requirements.txt b/requirements.txt index f5022da..40f3433 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,3 @@ Django>=5.2.18,<5.3 python-Levenshtein==0.27.4 bleach==6.4.0 mysqlclient==2.3.0 -django-registration==5.2.1 diff --git a/templates/base.html b/templates/base.html index 88c110d..0d327d6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -31,27 +31,6 @@ Licensed under the MIT license, see COPYING.MIT for details
Error reports - {% comment %} - {% if user.is_authenticated %} - - {% endif %} - {% if not user.is_authenticated %} - - {% endif %} - {% endcomment %}