How to get Django urls.py to recognize # (hash) in url?
Let's say I want the following url to get matched with a django view through urls.py: www.mysite.com/cake/#vanilla

In urls.py I have something like this:

url('^cake/#.*/$', app.views.view ),

So basically I want all urls that start with root: www.mysite.com/cake/#, to be handled by this view. However, django urls seems to treats # as %23, so instead all urls with root www.mysite.com/cake/%23 is handled by that view. How can I get the hash sign in url('^cake/#.*/$', app.views.view ), to be treated like an actual hash sign instead of a %23?

Thanks for any help!
How to get Django urls.py to recognize # (hash) in url?
===

Let's say I want the following url to get matched with a django view through urls.py: www.mysite.com/cake/#vanilla

In urls.py I have something like this:

url('^cake/#.*/$', app.views.view ),

So basically I want all urls that start with root: www.mysite.com/cake/#, to be handled by this view. However, django urls seems to treats # as %23, so instead all urls with root www.mysite.com/cake/%23 is handled by that view. How can I get the hash sign in url('^cake/#.*/$', app.views.view ), to be treated like an actual hash sign instead of a %23?

Thanks for any help!