Re: Log out via GET requests is deprecated

2022-07-17 Thread אורי
OK, thank you! אורי u...@speedy.net On Mon, Jul 18, 2022 at 2:28 AM Abdul Qoyyuum wrote: > Use the logout facility > https://docs.djangoproject.com/en/4.1/topics/auth/default/#how-to-log-a-user-out > > from django.contrib.auth import logout > > def logout_view(request): > logout(request) >

Re: External Authentication with username in header

2022-07-17 Thread Abdul Qoyyuum
That sounds like a Single Sign On or a Central Authentication Service. This stackoverflow shows some suggestions https://stackoverflow.com/q/4662348/1431104 Or if your "External Authentication" is a known provider service, you could take a look at django-allauth. On Sat, Jul 16, 2022 at 5:30 AM

Re: Log out via GET requests is deprecated

2022-07-17 Thread Abdul Qoyyuum
Use the logout facility https://docs.djangoproject.com/en/4.1/topics/auth/default/#how-to-log-a-user-out from django.contrib.auth import logout def logout_view(request): logout(request) # Redirect to a success page. Abdul Qoyyuum Bin Haji Abdul Kadir System Engineer at Card Access

Re: Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-17 Thread Frederick Muthuri
venue On Sun, Jul 17, 2022, 6:22 PM UJJWAL CHAUDHARY wrote: > Send me Invitation on next Scheduled > > On Sat, 16 Jul 2022, 13:16 , wrote: > >> PYTHON SESSION >> Join with Google Meet – You have been invited by >> satyajitbarik@gmail.com to attend an event named PYTHON SESSION on >>

Log out via GET requests is deprecated

2022-07-17 Thread אורי
Hi, Log out via GET requests is deprecated from Django 4.1 and will be removed in Django 5.0. I have a view where the user has to be logged in (otherwise it redirects to login), and then I check if the user logged in is not the correct user, and if they are different - I redirect the user to

Re: Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-17 Thread Satyajit Barik
The link will be same. Join the link at 8:00 PM IST(Indian standard time) everyday except sunday. > Thanks & Regards, Satuajit Barik > On 17-Jul-2022, at 8:52 PM, UJJWAL CHAUDHARY > wrote: > >  > Send me Invitation on next Scheduled > >> On Sat, 16 Jul 2022, 13:16 , wrote: >> >> >>

Re: Invitation: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-17 Thread UJJWAL CHAUDHARY
Send me Invitation on next Scheduled On Sat, 16 Jul 2022, 13:16 , wrote: > PYTHON SESSION > Join with Google Meet – You have been invited by > satyajitbarik@gmail.com to attend an event named PYTHON SESSION on > Saturday Jul 16, 2022 ⋅ 8pm – 8:30pm (India Standard Time - Kolkata). > > Join