开发者

Does django support hashbang in its URL?

Does django support urls having #! in it.Say I have ursl like

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

Any regex for that?

Note: http://开发者_运维问答example.com/foo/ and http://example.com/foo/#!/bar are different URLs and having different corresponding Views.

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


No. Anything after the # is not even sent to your webserver. If you want to make interactivity using the anchored (#) url styles, you need to go look at ajax libraries like jquery.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜