Re: HttpResponseRedirect doesn't redirect in this case

2009-11-17 Thread Gabriel .
you should "return HttpResponseRedirect" Regards. On Tue, Nov 17, 2009 at 5:04 PM, adrian wrote: > > The LOGIN_REDIRECT_URL setting points to this view, where I want to > redirect again according to the group the user is in: > > @login_required > def after_login(request): >    print "after_login

HttpResponseRedirect doesn't redirect in this case

2009-11-17 Thread adrian
The LOGIN_REDIRECT_URL setting points to this view, where I want to redirect again according to the group the user is in: @login_required def after_login(request): print "after_login" groups = request.user.groups.all() if groups: # use first one name = str(groups[0].na