Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 7, 2010 10:31:18

vamsy k.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

redirect after login


Hi,

I have the below line in my login code which decides the redirect
screen on successful login

redirect_to = request.REQUEST.get('next')

However redirect_to is always evaluating to None even though the
parameter 'next' is part of the url. Any idea what i might be doing
wrong?

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 7, 2010 10:36:18

Kenneth G.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

redirect after login


On Tue, 2010-12-07 at 02:31 -0800, vamsy krishna wrote:
> redirect_to = request.REQUEST.get('next')

how about
redirect_to = request.GET?
--
regards
Kenneth Gonsalves

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Dec. 7, 2010 10:45:39

vamsy k.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

redirect after login


request.GET returns an empty dict

On Dec 7, 3:35 pm, Kenneth Gonsalves <law...@au-kbc.org> wrote:
> On Tue, 2010-12-07 at 02:31 -0800, vamsy krishna wrote:
> > redirect_to = request.REQUEST.get('next')
>
> how about
> redirect_to = request.GET?
> --
> regards
> Kenneth Gonsalves

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#4 Dec. 7, 2010 14:06:07

a.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

redirect after login


Did you get the next parameter in the login template and append it to
form action, If that is not done then once the form is submitted the
next param would be lost.

On Dec 7, 5:45 am, vamsy krishna <badguitar...@gmail.com> wrote:
> request.GET returns an empty dict
>
> On Dec 7, 3:35 pm, Kenneth Gonsalves <law...@au-kbc.org> wrote:
>
> > On Tue, 2010-12-07 at 02:31 -0800, vamsy krishna wrote:
> > > redirect_to = request.REQUEST.get('next')
>
> > how about
> > redirect_to = request.GET?
> > --
> > regards
> > Kenneth Gonsalves

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 16th of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support