2
我有以下变量是在传递的url:如何检索与哈希GET变量它
http://localhost:8000/diff/?Platform=Comcast&PlatformID=7066191365225244112#S8
我需要能够提取如下:
Platform = Comcast
PlatformID = 7066191365225244112#S8
但是,django会在request.GET字典中转义散列。下面是它表明:
GET:<QueryDict: {u'PlatformID': [u'7066191365225244112'], u'Platform': [u'Comcast']}>,
怎么样把全部可变这里,包括#S8
末?
谢谢你,有一个Django的模板标签或东西,将转义字符像这样,做一个用urlencode ? – David542