Does django support hashbang in its url?

Does django support URLs having #! in him. I have ursl like

http://example.com/foo/!#/bar 

Any regex for this?

Note: http://example.com/foo/ and http://example.com/foo/#!/bar are different URLs and have different corresponding views.

url(r'^(?P<#!>.+)/bar/$', 'my_view', name='my-view'), reset bad characters in the group name

+4
source share
2 answers

No. Everything after # is not even sent to your web server. If you want to do interactivity using anchored styles (#), you need to take a look at ajax libraries like jquery.

+4
source

This is the "evil standard" denoting the AJAX URL. For a better description of the topic, you should refer to this document http://code.google.com/web/ajaxcrawling/ , which describes how they are and how to make URL handlers on your site then process them.

+1
source

All Articles