【发布时间】:2013-05-08 23:20:45
【问题描述】:
jsbin,在不支持(window.history && window.history.pushState)的浏览器上通过window.location.hash = data.edit;(details here)修改url。
这会创建这样的网址
http://jsbin.com/#/imetor/1/edit
如何让 django 的 urls.py 处理这样的 url? I am not even sure that the hash is being sent to the server。如果它没有被发送到服务器,那么 jsbin 使用什么技术将这些参数传递给服务器?
FWIW,这不起作用:
url(r'^#/(?P<project_id>[0-9A-Za-z]{6,})', 'mysite.views.project_hash', name='project_hash'),
【问题讨论】:
标签: python regex django url django-urls