Changes between Initial Version and Version 5 of Ticket #35555


Ignore:
Timestamp:
Jun 25, 2024, 10:03:31 AM (7 days ago)
Author:
Jaap Roes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35555 – Description

    initial v5  
    33This is nice, and something than happens at runtime for other middlewares in `contrib.auth`, for example:
    44
    5 [https://github.com/django/django/blob/f1705c8780c0a7587654fc736542d55fe4a7f29b/django/contrib/auth/middleware.py#L91-L120 RemoveUserMiddleware] raises a `ImproperlyConfigured` error if it's enabled but `AuthenticationMiddleware` isn't enabled, or is placed after it.
     5[https://github.com/django/django/blob/f1705c8780c0a7587654fc736542d55fe4a7f29b/django/contrib/auth/middleware.py#L91-L120 RemoteUserMiddleware] raises a `ImproperlyConfigured` error if it's enabled but `AuthenticationMiddleware` isn't enabled, or is placed after it.
    66
    77[https://github.com/django/django/blob/f1705c8780c0a7587654fc736542d55fe4a7f29b/django/contrib/auth/middleware.py#L27-L38 AuthenticationMiddleware] itself also raises a `ImproperlyConfigured` error if it's enabled but `SessionMiddleware` is not (or isn't executed before reaching it).
Back to Top