我有一个Django项目,它使用python象棋模块在主视图中显示棋盘。请求并提供响应:
if request.headers.get('x-requested-with') == 'XMLHttpRequest如何通过格式良好的请求和响应来实现这一目标?Django似乎有一个用于这类事情的,但是我不能把两个和两个放在一起。可能是
database from which I wanna assign the id to the delete it this is how it will on HTML page the button 所使用的按钮是一个锚标记,我使用了一个for循环来打印数据库中的所有条目,但是现在我想在用户单击cancel时删除该条目,但是由于to_id和from_id可以多次使用,所以我想根据id列来删除它,所以您能建议一种方法吗 <div