Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant reload in login view #128

Open
MathisDukatz opened this issue Oct 12, 2023 · 0 comments
Open

Constant reload in login view #128

MathisDukatz opened this issue Oct 12, 2023 · 0 comments

Comments

@MathisDukatz
Copy link

When I'm in the login view reloads get request multiple times per second. Everything else works fine but the login view shows this:

[12/Oct/2023 14:44:12] "GET /__reload__/events/ HTTP/1.1" 302 0
[12/Oct/2023 14:44:12] "GET /login/?next=/__reload__/events/ HTTP/1.1" 200 1888
[12/Oct/2023 14:44:15] "GET /__reload__/events/ HTTP/1.1" 302 0
[12/Oct/2023 14:44:15] "GET /login/?next=/__reload__/events/ HTTP/1.1" 200 1888
[12/Oct/2023 14:44:18] "GET /__reload__/events/ HTTP/1.1" 302 0
[12/Oct/2023 14:44:18] "GET /login/?next=/__reload__/events/ HTTP/1.1" 200 1888
[12/Oct/2023 14:44:21] "GET /__reload__/events/ HTTP/1.1" 302 0
[12/Oct/2023 14:44:21] "GET /login/?next=/__reload__/events/ HTTP/1.1" 200 1888
[12/Oct/2023 14:44:24] "GET /__reload__/events/ HTTP/1.1" 302 0
[12/Oct/2023 14:44:24] "GET /login/?next=/__reload__/events/ HTTP/1.1" 200 1888

To my settings I added:

LOGIN_URL = "/login/"

LOGIN_REQUIRED_IGNORE_VIEW_NAMES = [
    "login",
]

LOGIN_REQUIRED_IGNORE_PATHS = [
    r"/login/",
]

and also the login not required decorator to my login view.

Strangley it dosen't happen after a redirect from my loggout (permanent) view but starts again after using wrong login information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant