אורי
u...@speedy.net

On Tue, Aug 6, 2024 at 8:37 PM 'Adam Johnson' via Django developers
(Contributions to Django itself) <django-developers@googlegroups.com> wrote:

> Did you add the middleware to the MIDDLEWARE setting?
>

No. I didn't see in the documentation of LoginRequiredMiddleware
any MIDDLEWARE setting.

https://docs.djangoproject.com/en/5.1/ref/middleware/#django.contrib.auth.middleware.LoginRequiredMiddleware

https://docs.djangoproject.com/en/5.1/releases/5.1/#middleware-to-require-authentication-by-default

I thought that LoginRequiredMiddleware is always enabled in Django 5.1.


>
> On Tue, 6 Aug 2024, at 17:19, אורי wrote:
>
> Hi,
>
> I read about LoginRequiredMiddleware in Django 5.1 release notes, where
> it's written "The new LoginRequiredMiddleware redirects all unauthenticated
> requests to a login page."
>
> I wanted to check so I installed django-5.1rc1 and I checked static pages
> without login locally, and they work without change - I'm not redirected to
> login urls. What am I missing? Is this the expected behavior?
>
> Thanks,
> Uri.
> אורי
> u...@speedy.net
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CABD5YeG2i59m-P%3DB-qBW%3DiVyKNJG71cDE7WKoqz%2BBazHt2dRMw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-developers/CABD5YeG2i59m-P%3DB-qBW%3DiVyKNJG71cDE7WKoqz%2BBazHt2dRMw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/c77d5930-8d5b-4fae-85d6-28fd167b72d3%40app.fastmail.com
> <https://groups.google.com/d/msgid/django-developers/c77d5930-8d5b-4fae-85d6-28fd167b72d3%40app.fastmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CABD5YeGvjy8Ud2Ju0KkpYNGMc%2BktXnauT1kzUNdy2Q2uPMTB-A%40mail.gmail.com.
  • Dja... אורי
    • ... 'Adam Johnson' via Django developers (Contributions to Django itself)
      • ... אורי
        • ... James Bennett
          • ... אורי
            • ... 'Adam Johnson' via Django developers (Contributions to Django itself)

Reply via email to