System ====== ALT Workstation K 10.1 (updated 22.05.2023) Package version =============== python3-module-django-3.2.18-alt1.noarch Steps to reproduce ================== 1. $ django-admin startproject test 2. $ cd test && python3 manage.py startapp app 3. $ cat >> test/views.py << EOF from typing import Any from django.http import HttpRequest, HttpResponse from django.shortcuts import render from django.views import View class PageErrorView(View): def __init__(self, **kwargs): super().__init__(**kwargs) def get(self, request): return render(request, "errors/500.html", status=500) EOF 4. $ cat >> test/urls.py << EOF from .views import PageErrorView handler500 = PageErrorView.as_view() EOF 5. $ python3 manage.py runserver Actual result ============= $ python3 manage.py runserver Watching for file changes with StatReloader Performing system checks... Exception in thread django-main-thread: Traceback (most recent call last): File "/usr/lib64/python3.9/threading.py", line 980, in _bootstrap_inner self.run() File "/usr/lib64/python3.9/threading.py", line 917, in run self._target(*self._args, **self._kwargs) File "/usr/lib/python3/site-packages/django/utils/autoreload.py", line 64, in wrapper fn(*args, **kwargs) File "/usr/lib/python3/site-packages/django/core/management/commands/runserver.py", line 118, in inner_run self.check(display_num_errors=True) File "/usr/lib/python3/site-packages/django/core/management/base.py", line 469, in check raise SystemCheckError(msg) django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues: ERRORS: ?: (urls.E007) The custom handler500 view 'test.views.PageErrorView' does not take the correct number of arguments (request). System check identified 1 issue (0 silenced). Expected result =============== No error. Extra information ================= The error happens for handler500 only (other work as expected).
Воспроизводится в сизифе по шагам из описания. Версия пакета: python3-module-django-3.2.19-alt1