Skip to content

Logout issue with django 5 #20

@moira-andrews

Description

@moira-andrews

On my personal installation of snex2, I am getting an error when I try logging out of my signed in account:

[01/Apr/2025 18:14:58,119] - Broken pipe from ('127.0.0.1', 55422) [01/Apr/2025 18:14:58] "GET / HTTP/1.1" 200 24976 Method Not Allowed (GET): /accounts/logout/ 2025-04-01 18:15:03.218 WARNING: base: Method Not Allowed (GET): /accounts/logout/ Method Not Allowed: /accounts/logout/ 2025-04-01 18:15:03.228 WARNING: log: Method Not Allowed: /accounts/logout/ [01/Apr/2025 18:15:03] "GET /accounts/logout/ HTTP/1.1" 405 0

There is a stack overflow thread that links the error to django 5 installation. The version my installation uses is Django==5.1.7.

Commenting out tom_registration.middleware.RedirectAuthenticatedUsersFromRegisterMiddleware from this line of snex2/settings.py fixes the issue.

The production snex2 is run with Django==4.2, so this is only an issue for updating TOMToolkit to Django>=5.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions