Re: how to redirect to previous page

2009-04-22 Thread Margie
Cool, thanks, I will try that! On Apr 22, 12:19 am, Ayaz Ahmed Khan wrote: > On 22-Apr-09, at 3:06 AM,Margiewrote: > > > Then in my html on the button that does the unlock I have something > > like this: > > > > > I just thought maybe there was django magic that wouldn't require

Re: how to redirect to previous page

2009-04-22 Thread Ayaz Ahmed Khan
On 22-Apr-09, at 3:06 AM, Margie wrote: > Then in my html on the button that does the unlock I have something > like this: > > > I just thought maybe there was django magic that wouldn't require me > to pass in the "next" url. > > Thanks for your insights! If you want to avoid passing in a

Re: how to redirect to previous page

2009-04-21 Thread Margie
Thanks. Yes, your point about ajax is a good one, and in some cases that is what I want, but in other cases I want to reexecute the views.py code for the current page because now it will display something new, due to the "action" I just completed. For example, I am listing the posts for a forum

Re: how to redirect to previous page

2009-04-21 Thread Antoni Aloy
2009/4/21 Margie : > > Can anyone advise me on what is the best way in the views.py code to > return an HttpResponse that simply returns the user to the previous > page they were on? > > For example, let's say that multiple different pages have a button > that executes

Re: how to redirect to previous page

2009-04-21 Thread google torp
On Apr 21, 10:53 pm, Margie wrote: > Can anyone advise me on what is the best way in the views.py code to > return an HttpResponse that simply returns the user to the previous > page they were on? > > For example, let's say that multiple different pages have a button

how to redirect to previous page

2009-04-21 Thread Margie
Can anyone advise me on what is the best way in the views.py code to return an HttpResponse that simply returns the user to the previous page they were on? For example, let's say that multiple different pages have a button that executes some code in views.py, but is not intended to actually take