Take the 2-minute tour ×

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


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

share|improve this question

2 Answers 2

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.

share|improve this answer

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.

share|improve this answer
Moreover, it should be noted the # thing is nothing specific to Django or any server-side technique used. –  Grzegorz Oledzki May 13 '11 at 18:52

Your Answer


