andrew
andrew

Reputation: 1

Redirect with additional variables

I have view which in some cases redirects user to another addres. How can I redirect user, with additional variables (not GET, beacause that variable can be long text)? Currently I'm using HttpResponseRedirect.

Cheers.

Upvotes: 0

Views: 153

Answers (1)

mipadi
mipadi

Reputation: 410552

You can't force a POST on redirect. Perhaps your best option is to store the variables in request.session, and then check for the presence of these variables in the view handler for the redirected URL.

Here's some more info on sessions.

Upvotes: 7

Related Questions