<div> <br> <form method="post" action="." enctype="multipart/form-data"> {% csrf_token %} <div> <label for="username"> 删除好友 </label> <input type="text" id="username" name="username"> </div> <button type="submit"> 提交 </button> </form> </div>