Let's say I want the following URL to match the django view via urls.py:www.mysite.com/cake/#vanilla
In urls.pyI have something like this:
url('^cake/#.*/$', app.views.view ),
So basically, I want all URLs starting with root: to www.mysite.com/cake/#be handled by this view. However, django's URLs seem to treat # as% 23, so instead, all URLs with root are handled instead www.mysite.com/cake/%23. How can I get the hash sign in url('^cake/#.*/$', app.views.view ), which will be considered as the actual hash sign instead of% 23?
Thanks for any help!
source
share