Hi to everybody. I am a django and python newbie and I hope that someone can help me here. This is my first post here.
I will first explain my problem very abstractly to confine myself to only the bare necessities. I define a function "process" in a views.py file. BEGIN Code def process(request, template_name) token = request.GET.get('token', ' ') ... if request.method == 'GET': some_details = getDetails(token) .... if 'Success' in some_details['ACK'] email_adress = some_details['EMAIL'][0] first_name = some_details['FIRSTNAME'][0] ... return render_to_response(template_name, ---> locals(), context_instance=RequestContext(request)) if request.method == 'POST': details_response = doSomething(token = token) # everytime I enter this, I get empty token if 'Success' in details_respone['ACK']: ... else: error_code = details_response['L_ERRORCODE0'] return render_to_response(template_name, ---> locals(), context_instance=RequestContext(request)) END Code My question is: how can I access the value for token when polling the if request.method == 'POST' I would appreciate any help. -- 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 at http://groups.google.com/group/django-users?hl=en.