1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/webvirtcloud
catborise e94d69a524 feat(accounts): Django's LoginRequiredMiddleware replaces the package
django-login-required-middleware is dropped; Django 5.1+ ships the same
middleware. The login page is already marked login_not_required by
Django; email_otp gets the decorator, which replaces
LOGIN_REQUIRED_IGNORE_VIEW_NAMES. The datasource still requires login.

Existing settings.py files still name the old middleware. A system
check (accounts.E002) stops migrate and the server until MIDDLEWARE
uses Django's middleware, instead of an ImportError at startup; the
README has the steps.

A new matrix test walks every URL anonymously: everything outside a
short allowlist (login pages, the OpenAPI docs) sends the visitor to
the login page, and API views deny with 401/403. It passed with the old
middleware first and passes unchanged now.
2026-10-04 01:08:11 +03:00
..
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
asgi.py fix references to django 3 migration 2021-06-15 14:29:20 +03:00
common_tags.py fix: render the 404 page for logged-in users 2026-10-04 01:08:11 +03:00
middleware.py test(auth): reject unexpected failures in the authorization matrix 2026-10-04 01:08:11 +03:00
serializers.py fix(api): typed URLs and accurate response schemas 2026-10-04 01:08:11 +03:00
settings-dev.py add white noise for static_root/staticfiles_dir problem for debug/non-debug running mode 2023-11-10 16:29:48 +03:00
settings.py.template feat(accounts): Django's LoginRequiredMiddleware replaces the package 2026-10-04 01:08:11 +03:00
test_api_schema.py fix(api): typed URLs and accurate response schemas 2026-10-04 01:08:11 +03:00
test_authorization_matrix.py feat(accounts): Django's LoginRequiredMiddleware replaces the package 2026-10-04 01:08:11 +03:00
test_common_tags.py fix: render the 404 page for logged-in users 2026-10-04 01:08:11 +03:00
urls-api.py fix(api): typed URLs and accurate response schemas 2026-10-04 01:08:11 +03:00
urls.py feat(api): migrate API documentation from drf-yasg to drf-spectacular 2026-09-25 08:08:36 +03:00
wsgi.py fix(wsgi): only install SIGCHLD handler from the main thread 2026-10-02 12:04:41 +03:00
wsgi_custom.py fix references to django 3 migration 2021-06-15 14:29:20 +03:00