Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access url hash/fragment from a Django Request object

As in the title: How can I access the URL hash/fragment (the part following the hash #, or 'pound symbol' in US English) from a Django view and so, I suppose, from a Django Request object?

I've not found enough information on the documentation here available: http://docs.djangoproject.com/en/dev/ref/request-response/

P.S. Assume the fragment is included in the URL sent to the server. (I have verified this in my case, where I'm not actually using a browser.)

like image 766
Andrea Zilio Avatar asked Feb 02 '10 00:02

Andrea Zilio


1 Answers

This is not sent to the server, by definition. From URI References: Fragment Identifiers on URIs :

"The HTTP engine cannot make any assumptions about it. The server is not even given it."

like image 129
Matthew Flaschen Avatar answered Oct 21 '22 23:10

Matthew Flaschen