How to make Django urls.py recognize # (hash) in url?

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!

+5
source share
1 answer

IE7 winetricks. , HTTP-:)

, IE7 winetricks .

, - . URL- , deezer, ( javascript). / , -.

-, , : http://tkyk.github.com/jquery-history-plugin/

+3

All Articles