Django, move variables
I'm not sure why you say that session variables are not the best solution. On the contrary, they are absolutely the right solution for doing this.
In the first view, you can simply do request.session['first_data'] = my_data, and in the second, my_data = request.session.pop('first_data').
I have a standard django application. In a view (let's name it First) I call an HttpResponseRedirect (to the view called Second) however there is some data I'd like to transfer to the Second view. What options do I have to achieve this?
One would be to set a GET parameter, however this is not a nice solution.
I also could set a session variable, but this is also not the best solution.
Do I have any other possibility? For example could I use some context processor or something similar?
My question might contain not all the information, but I hope someone can give me a good tip.