I am trying to access values given by server response on django
“GET
/customize/report/?sid=1&buzz_graph%5Btitle%5D=Buzz+Graph&buzz_graph%5Badded%5D=true&source_distribution%5Btitle%5D=Source+Distribution&geographic_distribution%5Btitle%5D=Geographic+Distribution&gender_distribution%5Btitle%5D=Gender+Distribution&age_group_distribution%5Btitle%5D=Age-group+Distribution&top_phrases%5Btitle%5D=Top+Phrases
HTTP/1.1” 200 8264
Since %5B and %5D are used as [ and ].
I am not able to access the values using request.GET['buzz_graph['title']']. How to access such values from a response?
Thanks in advance
There are no quotes –
buzz_graph%5Btitle%5Disbuzz_graph[title], so what you want is:Instead of your python-like
request.GET['buzz_graph['title']'], which wouldn’t work anyway as you need to escape the inner quotes for it to be part of the string (as it is, it would produce a syntax error).