Re: Django back button issue after log-out

2020-05-22 Thread Akshat Zala
Hey, Did the solution worked? On Tuesday, 19 May 2020 10:37:51 UTC+5:30, Akshat Zala wrote: > > In urls.py of the project directory: > > path('login/', auth_views.LoginView. > as_view(template_name='users/login.html', redirect_authenticated_user=True > ), > name='login'), > > On Monday, 17 Decem

Re: Django back button issue after log-out

2020-05-18 Thread Akshat Zala
In urls.py of the project directory: path('login/', auth_views.LoginView. as_view(template_name='users/login.html', redirect_authenticated_user=True), name='login'), On Monday, 17 December 2012 18:39:25 UTC+5:30, ke1g wrote: > > > > On Mon, Dec 17, 2012 at 5:14 AM, Ashish Sable > wrote: > >> >>

Re: Django back button issue after log-out

2020-05-17 Thread sidharth sharma
did you find the solution for this ? On Monday, December 17, 2012 at 6:39:25 PM UTC+5:30, ke1g wrote: > > > > On Mon, Dec 17, 2012 at 5:14 AM, Ashish Sable > wrote: > >> >> I have written simple registration(login,logout) Django apps. >> when i click on logout and then back button from browser

Re: Django back button issue after log-out

2016-08-14 Thread James Schneider
On Thu, Aug 11, 2016 at 9:44 PM, Abhijeet Singh wrote: > It still does not work. Still "Back" button takes it to last session page > > On Monday, December 17, 2012 at 7:37:49 PM UTC+5:30, Ashish Sable wrote: >> >> yup... Got the solution just the bower cache needs to be cleared. >> >> from django

Re: Django back button issue after log-out

2016-08-12 Thread Abhijeet Singh
It still does not work. Still "Back" button takes it to last session page On Monday, December 17, 2012 at 7:37:49 PM UTC+5:30, Ashish Sable wrote: > > yup... Got the solution just the bower cache needs to be cleared. > > from django.views.decorators.cache import cache_control > > @cache_control(no

Re: Django back button issue after log-out

2012-12-17 Thread Chris Cogdon
But that means you're going to need to wrap _all_ your views in that structure, and that also means that none of those views will be cacheable. That could be desirable, depending on your application. You might also want to consider using @vary_on_cookie, which means that the cache will be speci

Re: Django back button issue after log-out

2012-12-17 Thread Ashish Sable
yup... Got the solution just the bower cache needs to be cleared. from django.views.decorators.cache import cache_control @cache_control(no_cache=True, must_revalidate=True, no_store=True) def view(): After logout it will render to login page. On Monday, 17 December 2012 18:39:25 UTC+5:30, ke1g

Re: Django back button issue after log-out

2012-12-17 Thread Bill Freeman
On Mon, Dec 17, 2012 at 5:14 AM, Ashish Sable wrote: > > I have written simple registration(login,logout) Django apps. > when i click on logout and then back button from browser > it shows me previous page. it should redirect me to login page. please help > > The back button in your browser just

Django back button issue after log-out

2012-12-17 Thread Ashish Sable
I have written simple registration(login,logout) Django apps. when i click on logout and then back button from browser it shows me previous page. it should redirect me to login page. please help -- You received this message because you are subscribed to the Google Groups "Django users" group.